| Index: chrome/renderer/extensions/extension_process_bindings.h
|
| diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h
|
| index bea3e9185cd549592af0bfdee90abf7f23b2e0cf..17776582f078143d32c8116eb0a5359f450d1409 100644
|
| --- a/chrome/renderer/extensions/extension_process_bindings.h
|
| +++ b/chrome/renderer/extensions/extension_process_bindings.h
|
| @@ -11,10 +11,12 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "chrome/common/view_types.h"
|
| #include "v8/include/v8.h"
|
|
|
| class GURL;
|
| class URLPattern;
|
| +class WebView;
|
|
|
| class ExtensionProcessBindings {
|
| public:
|
| @@ -36,7 +38,7 @@ class ExtensionProcessBindings {
|
|
|
| // Sets the host permissions for a particular extension.
|
| static void SetHostPermissions(const GURL& extension_url,
|
| - const std::vector<URLPattern>& permissions);
|
| + const std::vector<URLPattern>& permissions);
|
|
|
| // Check if the extension in the currently running context has permission to
|
| // access the given extension function. Must be called with a valid V8
|
| @@ -47,6 +49,11 @@ class ExtensionProcessBindings {
|
| // denied. Must be called with a valid V8 context in scope.
|
| static v8::Handle<v8::Value> ThrowPermissionDeniedException(
|
| const std::string& function_name);
|
| +
|
| + // For EXTENSION_* |type| values, adds/replaces a special class name on to
|
| + // the document element (e.g. "extension_toolstrip", "extension_mole") so
|
| + // that the page can use CSS rules to control its display appropriately.
|
| + static void SetViewType(WebView* view, ViewType::Type type);
|
| };
|
|
|
| #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
|
|
|