| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "content/renderer/render_process_observer.h" | 15 #include "content/public/renderer/render_process_observer.h" |
| 16 #include "chrome/common/extensions/extension_set.h" | 16 #include "chrome/common/extensions/extension_set.h" |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 class RenderThread; | 19 class RenderThread; |
| 20 class URLPattern; | 20 class URLPattern; |
| 21 class UserScriptSlave; | 21 class UserScriptSlave; |
| 22 struct ExtensionMsg_Loaded_Params; | 22 struct ExtensionMsg_Loaded_Params; |
| 23 struct ExtensionMsg_UpdatePermissions_Params; | 23 struct ExtensionMsg_UpdatePermissions_Params; |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class ListValue; | 26 class ListValue; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace WebKit { | 29 namespace WebKit { |
| 30 class WebFrame; | 30 class WebFrame; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace v8 { | 33 namespace v8 { |
| 34 class Extension; | 34 class Extension; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // Dispatches extension control messages sent to the renderer and stores | 37 // Dispatches extension control messages sent to the renderer and stores |
| 38 // renderer extension related state. | 38 // renderer extension related state. |
| 39 class ExtensionDispatcher : public RenderProcessObserver { | 39 class ExtensionDispatcher : public content::RenderProcessObserver { |
| 40 public: | 40 public: |
| 41 ExtensionDispatcher(); | 41 ExtensionDispatcher(); |
| 42 virtual ~ExtensionDispatcher(); | 42 virtual ~ExtensionDispatcher(); |
| 43 | 43 |
| 44 const std::set<std::string>& function_names() const { | 44 const std::set<std::string>& function_names() const { |
| 45 return function_names_; | 45 return function_names_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool is_extension_process() const { return is_extension_process_; } | 48 bool is_extension_process() const { return is_extension_process_; } |
| 49 const ExtensionSet* extensions() const { return &extensions_; } | 49 const ExtensionSet* extensions() const { return &extensions_; } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // The applications that are active in this process. | 125 // The applications that are active in this process. |
| 126 std::set<std::string> active_application_ids_; | 126 std::set<std::string> active_application_ids_; |
| 127 | 127 |
| 128 // True once WebKit has been initialized (and it is therefore safe to poke). | 128 // True once WebKit has been initialized (and it is therefore safe to poke). |
| 129 bool is_webkit_initialized_; | 129 bool is_webkit_initialized_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 131 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 134 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| OLD | NEW |