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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 // set appropriately to indicate the failure reason. | 45 // set appropriately to indicate the failure reason. |
46 bool SetPartitionAttribute(const std::string& partition_id, | 46 bool SetPartitionAttribute(const std::string& partition_id, |
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 |
56 void DidNavigate(const GURL& url, int process_id); | 56 // Inform the BrowserPlugin that the guest has finished loading a new page. |
57 void LoadStop(); | |
Charlie Reis
2012/10/11 18:55:28
nit: We probably should re-order these closer to h
irobert
2012/10/11 20:45:49
Done.
| |
58 // Inform the BrowserPlugin that the guest has navigated to a new URL. | |
59 void LoadCommit(const GURL& url, int process_id, bool is_top_level); | |
57 // Inform the BrowserPlugin that the guest has started loading a new page. | 60 // Inform the BrowserPlugin that the guest has started loading a new page. |
58 void LoadStart(const GURL& url, bool is_top_level); | 61 void LoadStart(const GURL& url, bool is_top_level); |
59 // Inform the BrowserPlugin that the guest has aborted loading a new page. | 62 // 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); | 63 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); |
61 // Inform the BrowserPlugin that the guest has redirected a navigation. | 64 // Inform the BrowserPlugin that the guest has redirected a navigation. |
62 void LoadRedirect(const GURL& old_url, | 65 void LoadRedirect(const GURL& old_url, |
63 const GURL& new_url, | 66 const GURL& new_url, |
64 bool is_top_level); | 67 bool is_top_level); |
65 // Tells the BrowserPlugin to advance the focus to the next (or previous) | 68 // Tells the BrowserPlugin to advance the focus to the next (or previous) |
66 // element. | 69 // element. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
199 EventListenerMap event_listener_map_; | 202 EventListenerMap event_listener_map_; |
200 #if defined(OS_WIN) | 203 #if defined(OS_WIN) |
201 base::SharedMemory shared_memory_; | 204 base::SharedMemory shared_memory_; |
202 #endif | 205 #endif |
203 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 206 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
204 }; | 207 }; |
205 | 208 |
206 } // namespace content | 209 } // namespace content |
207 | 210 |
208 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 211 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |