| 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(); |
| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 EventListenerMap event_listener_map_; | 199 EventListenerMap event_listener_map_; |
| 197 #if defined(OS_WIN) | 200 #if defined(OS_WIN) |
| 198 base::SharedMemory shared_memory_; | 201 base::SharedMemory shared_memory_; |
| 199 #endif | 202 #endif |
| 200 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 203 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 } // namespace content | 206 } // namespace content |
| 204 | 207 |
| 205 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 208 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |