Change visibility of scanner internals

so that descendant classes can access them.
Merge pull request #8768 from owncloud/scanner_visibility

Change visibility of scanner internals