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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 10378089: Browser Plugin: Removed BrowserPluginWebContentsObserver (to be replaced by rewritten BrowserPlugi… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated Created 8 years, 7 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual void ToggleSpeechInput() OVERRIDE; 222 virtual void ToggleSpeechInput() OVERRIDE;
223 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; 223 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE;
224 224
225 void set_delegate(RenderViewHostDelegate* d) { 225 void set_delegate(RenderViewHostDelegate* d) {
226 CHECK(d); // http://crbug.com/82827 226 CHECK(d); // http://crbug.com/82827
227 delegate_ = d; 227 delegate_ = d;
228 } 228 }
229 229
230 // Set up the RenderView child process. Virtual because it is overridden by 230 // Set up the RenderView child process. Virtual because it is overridden by
231 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used 231 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used
232 // as the name of the new top-level frame. The |opener_route_id| parameter 232 // as the name of the new top-level frame.
233 // indicates which RenderView created this (MSG_ROUTING_NONE if none). If 233 // The |opener_route_id| parameter indicates which RenderView created this
234 // |max_page_id| is larger than -1, the RenderView is told to start issuing 234 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
235 // page IDs at |max_page_id| + 1. 235 // RenderView is told to start issuing page IDs at |max_page_id| + 1.
236 // If this RenderView is a guest, the embedder's process ID and routing ID
237 // is also passed in so that the RenderView's process can establish a channel
238 // with its embedder if it's not already established.
236 virtual bool CreateRenderView(const string16& frame_name, 239 virtual bool CreateRenderView(const string16& frame_name,
237 int opener_route_id, 240 int opener_route_id,
238 int32 max_page_id); 241 int32 max_page_id,
242 int embedder_process_id,
243 int embedder_routing_id);
239 244
240 base::TerminationStatus render_view_termination_status() const { 245 base::TerminationStatus render_view_termination_status() const {
241 return render_view_termination_status_; 246 return render_view_termination_status_;
242 } 247 }
243 248
244 // Sends the given navigation message. Use this rather than sending it 249 // Sends the given navigation message. Use this rather than sending it
245 // yourself since this does the internal bookkeeping described below. This 250 // yourself since this does the internal bookkeeping described below. This
246 // function takes ownership of the provided message pointer. 251 // function takes ownership of the provided message pointer.
247 // 252 //
248 // If a cross-site request is in progress, we may be suspended while waiting 253 // If a cross-site request is in progress, we may be suspended while waiting
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void LoadStateChanged(const GURL& url, 347 void LoadStateChanged(const GURL& url,
343 const net::LoadStateWithParam& load_state, 348 const net::LoadStateWithParam& load_state,
344 uint64 upload_position, 349 uint64 upload_position,
345 uint64 upload_size); 350 uint64 upload_size);
346 351
347 bool SuddenTerminationAllowed() const; 352 bool SuddenTerminationAllowed() const;
348 void set_sudden_termination_allowed(bool enabled) { 353 void set_sudden_termination_allowed(bool enabled) {
349 sudden_termination_allowed_ = enabled; 354 sudden_termination_allowed_ = enabled;
350 } 355 }
351 356
352 void set_guest(bool guest) { guest_ = guest; }
353
354 // RenderWidgetHost public overrides. 357 // RenderWidgetHost public overrides.
355 virtual void Shutdown() OVERRIDE; 358 virtual void Shutdown() OVERRIDE;
356 virtual bool IsRenderView() const OVERRIDE; 359 virtual bool IsRenderView() const OVERRIDE;
357 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 360 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
358 virtual void GotFocus() OVERRIDE; 361 virtual void GotFocus() OVERRIDE;
359 virtual void LostCapture() OVERRIDE; 362 virtual void LostCapture() OVERRIDE;
360 virtual void LostMouseLock() OVERRIDE; 363 virtual void LostMouseLock() OVERRIDE;
361 virtual void ForwardMouseEvent( 364 virtual void ForwardMouseEvent(
362 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 365 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
363 virtual void OnMouseActivate() OVERRIDE; 366 virtual void OnMouseActivate() OVERRIDE;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 scoped_refptr<SiteInstanceImpl> instance_; 555 scoped_refptr<SiteInstanceImpl> instance_;
553 556
554 // true if we are currently waiting for a response for drag context 557 // true if we are currently waiting for a response for drag context
555 // information. 558 // information.
556 bool waiting_for_drag_context_response_; 559 bool waiting_for_drag_context_response_;
557 560
558 // A bitwise OR of bindings types that have been enabled for this RenderView. 561 // A bitwise OR of bindings types that have been enabled for this RenderView.
559 // See BindingsPolicy for details. 562 // See BindingsPolicy for details.
560 int enabled_bindings_; 563 int enabled_bindings_;
561 564
562 // Indicates whether or not this RenderViewHost refers to a guest RenderView.
563 bool guest_;
564
565 // The request_id for the pending cross-site request. Set to -1 if 565 // The request_id for the pending cross-site request. Set to -1 if
566 // there is a pending request, but we have not yet started the unload 566 // there is a pending request, but we have not yet started the unload
567 // for the current page. Set to the request_id value of the pending 567 // for the current page. Set to the request_id value of the pending
568 // request once we have gotten the some data for the pending page 568 // request once we have gotten the some data for the pending page
569 // and thus started the unload process. 569 // and thus started the unload process.
570 int pending_request_id_; 570 int pending_request_id_;
571 571
572 // Whether we should buffer outgoing Navigate messages rather than sending 572 // Whether we should buffer outgoing Navigate messages rather than sending
573 // them. This will be true when a RenderViewHost is created for a cross-site 573 // them. This will be true when a RenderViewHost is created for a cross-site
574 // request, until we hear back from the onbeforeunload handler of the old 574 // request, until we hear back from the onbeforeunload handler of the old
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 641 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
642 }; 642 };
643 643
644 #if defined(COMPILER_MSVC) 644 #if defined(COMPILER_MSVC)
645 #pragma warning(pop) 645 #pragma warning(pop)
646 #endif 646 #endif
647 647
648 } // namespace content 648 } // namespace content
649 649
650 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 650 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698