OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
7 | 7 |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 std::string& error_message); | 47 std::string& error_message); |
48 | 48 |
49 // Inform the BrowserPlugin to update its backing store with the pixels in | 49 // Inform the BrowserPlugin to update its backing store with the pixels in |
50 // its damage buffer. | 50 // its damage buffer. |
51 void UpdateRect(int message_id, | 51 void UpdateRect(int message_id, |
52 const BrowserPluginMsg_UpdateRect_Params& params); | 52 const BrowserPluginMsg_UpdateRect_Params& params); |
53 // Inform the BrowserPlugin that its guest has crashed. | 53 // Inform the BrowserPlugin that its guest has crashed. |
54 void GuestCrashed(); | 54 void GuestCrashed(); |
55 // Informs the BrowserPlugin that the guest has navigated to a new URL. | 55 // Informs the BrowserPlugin that the guest has navigated to a new URL. |
56 void DidNavigate(const GURL& url, int process_id); | 56 void DidNavigate(const GURL& url, int process_id); |
| 57 // Inform the BrowserPlugin that the guest has started loading a new page. |
| 58 void LoadStart(const GURL& url, bool is_top_level); |
| 59 // Inform the BrowserPlugin that the guest has aborted loading a new page. |
| 60 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); |
57 // Tells the BrowserPlugin to advance the focus to the next (or previous) | 61 // Tells the BrowserPlugin to advance the focus to the next (or previous) |
58 // element. | 62 // element. |
59 void AdvanceFocus(bool reverse); | 63 void AdvanceFocus(bool reverse); |
60 | 64 |
61 // Informs the BrowserPlugin that the guest has started/stopped accepting | 65 // Informs the BrowserPlugin that the guest has started/stopped accepting |
62 // touch events. | 66 // touch events. |
63 void SetAcceptTouchEvents(bool accept); | 67 void SetAcceptTouchEvents(bool accept); |
64 | 68 |
65 // Indicates whether there are any Javascript listeners attached to a | 69 // Indicates whether there are any Javascript listeners attached to a |
66 // provided event_name. | 70 // provided event_name. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 EventListenerMap event_listener_map_; | 190 EventListenerMap event_listener_map_; |
187 #if defined(OS_WIN) | 191 #if defined(OS_WIN) |
188 base::SharedMemory shared_memory_; | 192 base::SharedMemory shared_memory_; |
189 #endif | 193 #endif |
190 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 194 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
191 }; | 195 }; |
192 | 196 |
193 } // namespace content | 197 } // namespace content |
194 | 198 |
195 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 199 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |