[Extensions] Update PermissionsData::AccessType to an enum class

Update PermissionsData::AccessType to an enum class, and rename it to
PermissionsData::PageAccess. This will help prevent accidental misuse of
the enum (e.g., implicit conversion to bool, etc).

Bug: None

Change-Id: Ic81bf8cbcfd53e0700258413ef56d8150b23a046
Reviewed-on: https://chromium-review.googlesource.com/1042486
Commit-Queue: Devlin <[email protected]>
Reviewed-by: Karan Bhatia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#555878}
diff --git a/extensions/renderer/injection_host.h b/extensions/renderer/injection_host.h
index 78015a4..727df8c2 100644
--- a/extensions/renderer/injection_host.h
+++ b/extensions/renderer/injection_host.h
@@ -29,7 +29,7 @@
   virtual const std::string& name() const = 0;
 
   // Returns true if the script should execute.
-  virtual extensions::PermissionsData::AccessType CanExecuteOnFrame(
+  virtual extensions::PermissionsData::PageAccess CanExecuteOnFrame(
       const GURL& document_url,
       content::RenderFrame* render_frame,
       int tab_id,