| 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_HELPER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 void InlineWebstoreInstall(int install_id, | 50 void InlineWebstoreInstall(int install_id, |
| 51 std::string webstore_item_id, | 51 std::string webstore_item_id, |
| 52 GURL requestor_url); | 52 GURL requestor_url); |
| 53 | 53 |
| 54 int browser_window_id() const { return browser_window_id_; } | 54 int browser_window_id() const { return browser_window_id_; } |
| 55 content::ViewType view_type() const { return view_type_; } | 55 content::ViewType view_type() const { return view_type_; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // RenderViewObserver implementation. | 58 // RenderViewObserver implementation. |
| 59 virtual bool OnMessageReceived(const IPC::Message& message); | 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 60 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame); | 60 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
| 61 virtual void DidFinishLoad(WebKit::WebFrame* frame); | 61 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; |
| 62 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame); | 62 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; |
| 63 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame); | 63 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; |
| 64 virtual void FrameDetached(WebKit::WebFrame* frame); | 64 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; |
| 65 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 65 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 66 WebKit::WebDataSource* ds); | 66 WebKit::WebDataSource* ds) OVERRIDE; |
| 67 | 67 |
| 68 void OnExtensionResponse(int request_id, bool success, | 68 void OnExtensionResponse(int request_id, bool success, |
| 69 const std::string& response, | 69 const std::string& response, |
| 70 const std::string& error); | 70 const std::string& error); |
| 71 void OnExtensionMessageInvoke(const std::string& extension_id, | 71 void OnExtensionMessageInvoke(const std::string& extension_id, |
| 72 const std::string& function_name, | 72 const std::string& function_name, |
| 73 const base::ListValue& args, | 73 const base::ListValue& args, |
| 74 const GURL& event_url); | 74 const GURL& event_url); |
| 75 void OnExtensionDeliverMessage(int target_port_id, | 75 void OnExtensionDeliverMessage(int target_port_id, |
| 76 const std::string& message); | 76 const std::string& message); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Type of view attached with RenderView. | 116 // Type of view attached with RenderView. |
| 117 content::ViewType view_type_; | 117 content::ViewType view_type_; |
| 118 | 118 |
| 119 // Id number of browser window which RenderView is attached to. | 119 // Id number of browser window which RenderView is attached to. |
| 120 int browser_window_id_; | 120 int browser_window_id_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 122 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 125 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
| OLD | NEW |