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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 10941042: Browser plugin: Implement loadStart and loadAbort events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra space 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A BrowserPluginGuest represents the browser side of browser <--> renderer 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of
7 // browser <--> guest renderer communication. The 'guest' renderer is a 7 // browser <--> guest renderer communication. The 'guest' renderer is a
8 // <browser> tag. 8 // <browser> tag.
9 // 9 //
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void set_guest_hang_timeout_for_testing(const base::TimeDelta& timeout) { 75 void set_guest_hang_timeout_for_testing(const base::TimeDelta& timeout) {
76 guest_hang_timeout_ = timeout; 76 guest_hang_timeout_ = timeout;
77 } 77 }
78 78
79 void set_embedder_render_process_host( 79 void set_embedder_render_process_host(
80 RenderProcessHost* render_process_host) { 80 RenderProcessHost* render_process_host) {
81 embedder_render_process_host_ = render_process_host; 81 embedder_render_process_host_ = render_process_host;
82 } 82 }
83 83
84 // WebContentsObserver implementation. 84 // WebContentsObserver implementation.
85 virtual void DidStartProvisionalLoadForFrame(
86 int64 frame_id,
87 bool is_main_frame,
88 const GURL& validated_url,
89 bool is_error_page,
90 RenderViewHost* render_view_host) OVERRIDE;
91 virtual void DidFailProvisionalLoad(
92 int64 frame_id,
93 bool is_main_frame,
94 const GURL& validated_url,
95 int error_code,
96 const string16& error_description,
97 RenderViewHost* render_view_host) OVERRIDE;
85 virtual void DidCommitProvisionalLoadForFrame( 98 virtual void DidCommitProvisionalLoadForFrame(
86 int64 frame_id, 99 int64 frame_id,
87 bool is_main_frame, 100 bool is_main_frame,
88 const GURL& url, 101 const GURL& url,
89 PageTransition transition_type, 102 PageTransition transition_type,
90 RenderViewHost* render_view_host) OVERRIDE; 103 RenderViewHost* render_view_host) OVERRIDE;
91 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 104 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
92 105
93 // WebContentsDelegate implementation. 106 // WebContentsDelegate implementation.
107 virtual bool CanDownload(RenderViewHost* render_view_host,
108 int request_id,
109 const std::string& request_method) OVERRIDE;
94 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; 110 virtual void RendererUnresponsive(WebContents* source) OVERRIDE;
95 111
96 void UpdateRect(RenderViewHost* render_view_host, 112 void UpdateRect(RenderViewHost* render_view_host,
97 const ViewHostMsg_UpdateRect_Params& params); 113 const ViewHostMsg_UpdateRect_Params& params);
98 void UpdateRectACK(int message_id, const gfx::Size& size); 114 void UpdateRectACK(int message_id, const gfx::Size& size);
99 // Handles input event routed through the embedder (which is initiated in the 115 // Handles input event routed through the embedder (which is initiated in the
100 // browser plugin (renderer side of the embedder)). 116 // browser plugin (renderer side of the embedder)).
101 void HandleInputEvent(RenderViewHost* render_view_host, 117 void HandleInputEvent(RenderViewHost* render_view_host,
102 const gfx::Rect& guest_rect, 118 const gfx::Rect& guest_rect,
103 const WebKit::WebInputEvent& event, 119 const WebKit::WebInputEvent& event,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 IDMap<RenderViewHost> pending_updates_; 196 IDMap<RenderViewHost> pending_updates_;
181 int pending_update_counter_; 197 int pending_update_counter_;
182 base::TimeDelta guest_hang_timeout_; 198 base::TimeDelta guest_hang_timeout_;
183 199
184 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 200 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
185 }; 201 };
186 202
187 } // namespace content 203 } // namespace content
188 204
189 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 205 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698