Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager_impl.h

Issue 11035067: Add loadCommit and loadStop Event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_MANAGER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
7 7
8 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 8 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 10
11 struct BrowserPluginMsg_DidNavigate_Params;
12 struct BrowserPluginMsg_UpdateRect_Params; 11 struct BrowserPluginMsg_UpdateRect_Params;
13 12
14 namespace content { 13 namespace content {
15 14
16 class BrowserPluginManagerImpl : public BrowserPluginManager { 15 class BrowserPluginManagerImpl : public BrowserPluginManager {
17 public: 16 public:
18 BrowserPluginManagerImpl(); 17 BrowserPluginManagerImpl();
19 virtual ~BrowserPluginManagerImpl(); 18 virtual ~BrowserPluginManagerImpl();
20 19
21 // BrowserPluginManager implementation. 20 // BrowserPluginManager implementation.
22 virtual BrowserPlugin* CreateBrowserPlugin( 21 virtual BrowserPlugin* CreateBrowserPlugin(
23 RenderViewImpl* render_view, 22 RenderViewImpl* render_view,
24 WebKit::WebFrame* frame, 23 WebKit::WebFrame* frame,
25 const WebKit::WebPluginParams& params) OVERRIDE; 24 const WebKit::WebPluginParams& params) OVERRIDE;
26 25
27 // IPC::Sender implementation. 26 // IPC::Sender implementation.
28 virtual bool Send(IPC::Message* msg) OVERRIDE; 27 virtual bool Send(IPC::Message* msg) OVERRIDE;
29 28
30 // RenderProcessObserver override. Call on render thread. 29 // RenderProcessObserver override. Call on render thread.
31 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
32 private: 31 private:
33 void OnUpdateRect(int instance_id, 32 void OnUpdateRect(int instance_id,
34 int message_id, 33 int message_id,
35 const BrowserPluginMsg_UpdateRect_Params& params); 34 const BrowserPluginMsg_UpdateRect_Params& params);
36 void OnGuestCrashed(int instance_id); 35 void OnGuestCrashed(int instance_id);
37 void OnDidNavigate(int instance_id, 36
38 const BrowserPluginMsg_DidNavigate_Params& params);
39 void OnAdvanceFocus(int instance_id, bool reverse); 37 void OnAdvanceFocus(int instance_id, bool reverse);
40 void OnShouldAcceptTouchEvents(int instance_id, bool accept); 38 void OnShouldAcceptTouchEvents(int instance_id, bool accept);
41 void OnLoadStart(int instance_id, 39 void OnLoadStart(int instance_id,
42 const GURL& url, 40 const GURL& url,
43 bool is_top_level); 41 bool is_top_level);
42 void OnLoadCommit(int instance_id,
43 const GURL& url,
44 int process_id,
45 bool is_main_frame);
46 void OnLoadStop(int instance_id);
44 void OnLoadAbort(int instance_id, 47 void OnLoadAbort(int instance_id,
45 const GURL& url, 48 const GURL& url,
46 bool is_top_level, 49 bool is_top_level,
47 const std::string& type); 50 const std::string& type);
48 void OnLoadRedirect(int instance_id, 51 void OnLoadRedirect(int instance_id,
49 const GURL& old_url, 52 const GURL& old_url,
50 const GURL& new_url, 53 const GURL& new_url,
51 bool is_top_level); 54 bool is_top_level);
52 55
53 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); 56 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl);
54 }; 57 };
55 58
56 } // namespace content 59 } // namespace content
57 60
58 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ 61 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698