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

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

Issue 9721001: Plumb Guest flag to RenderViewImpl (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated broken render_view_test Created 8 years, 9 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 GetSessionStorageNamespace() OVERRIDE; 204 GetSessionStorageNamespace() OVERRIDE;
205 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 205 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
206 virtual void InsertCSS(const string16& frame_xpath, 206 virtual void InsertCSS(const string16& frame_xpath,
207 const std::string& css) OVERRIDE; 207 const std::string& css) OVERRIDE;
208 virtual bool IsRenderViewLive() const OVERRIDE; 208 virtual bool IsRenderViewLive() const OVERRIDE;
209 virtual void NotifyContextMenuClosed( 209 virtual void NotifyContextMenuClosed(
210 const CustomContextMenuContext& context) OVERRIDE; 210 const CustomContextMenuContext& context) OVERRIDE;
211 virtual void NotifyMoveOrResizeStarted() OVERRIDE; 211 virtual void NotifyMoveOrResizeStarted() OVERRIDE;
212 virtual void ReloadFrame() OVERRIDE; 212 virtual void ReloadFrame() OVERRIDE;
213 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; 213 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE;
214 void SetGuest(bool guest);
214 virtual void SetWebUIProperty(const std::string& name, 215 virtual void SetWebUIProperty(const std::string& name,
215 const std::string& value) OVERRIDE; 216 const std::string& value) OVERRIDE;
216 virtual void SetZoomLevel(double level) OVERRIDE; 217 virtual void SetZoomLevel(double level) OVERRIDE;
217 virtual void Zoom(PageZoom zoom) OVERRIDE; 218 virtual void Zoom(PageZoom zoom) OVERRIDE;
218 virtual void SyncRendererPrefs() OVERRIDE; 219 virtual void SyncRendererPrefs() OVERRIDE;
219 virtual void ToggleSpeechInput() OVERRIDE; 220 virtual void ToggleSpeechInput() OVERRIDE;
220 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; 221 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE;
221 222
222 void set_delegate(RenderViewHostDelegate* d) { 223 void set_delegate(RenderViewHostDelegate* d) {
223 CHECK(d); // http://crbug.com/82827 224 CHECK(d); // http://crbug.com/82827
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 scoped_refptr<SiteInstanceImpl> instance_; 533 scoped_refptr<SiteInstanceImpl> instance_;
533 534
534 // true if we are currently waiting for a response for drag context 535 // true if we are currently waiting for a response for drag context
535 // information. 536 // information.
536 bool waiting_for_drag_context_response_; 537 bool waiting_for_drag_context_response_;
537 538
538 // A bitwise OR of bindings types that have been enabled for this RenderView. 539 // A bitwise OR of bindings types that have been enabled for this RenderView.
539 // See BindingsPolicy for details. 540 // See BindingsPolicy for details.
540 int enabled_bindings_; 541 int enabled_bindings_;
541 542
543 // Indicates whether or not this RenderViewHost refers to a guest RenderView.
544 bool guest_;
545
542 // The request_id for the pending cross-site request. Set to -1 if 546 // The request_id for the pending cross-site request. Set to -1 if
543 // there is a pending request, but we have not yet started the unload 547 // there is a pending request, but we have not yet started the unload
544 // for the current page. Set to the request_id value of the pending 548 // for the current page. Set to the request_id value of the pending
545 // request once we have gotten the some data for the pending page 549 // request once we have gotten the some data for the pending page
546 // and thus started the unload process. 550 // and thus started the unload process.
547 int pending_request_id_; 551 int pending_request_id_;
548 552
549 // Whether we should buffer outgoing Navigate messages rather than sending 553 // Whether we should buffer outgoing Navigate messages rather than sending
550 // them. This will be true when a RenderViewHost is created for a cross-site 554 // them. This will be true when a RenderViewHost is created for a cross-site
551 // request, until we hear back from the onbeforeunload handler of the old 555 // request, until we hear back from the onbeforeunload handler of the old
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 622 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
619 }; 623 };
620 624
621 #if defined(COMPILER_MSVC) 625 #if defined(COMPILER_MSVC)
622 #pragma warning(pop) 626 #pragma warning(pop)
623 #endif 627 #endif
624 628
625 } // namespace content 629 } // namespace content
626 630
627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 631 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | content/renderer/render_view_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698