| 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_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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 GetSessionStorageNamespace() OVERRIDE; | 202 GetSessionStorageNamespace() OVERRIDE; |
| 203 virtual SiteInstance* GetSiteInstance() const OVERRIDE; | 203 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
| 204 virtual void InsertCSS(const string16& frame_xpath, | 204 virtual void InsertCSS(const string16& frame_xpath, |
| 205 const std::string& css) OVERRIDE; | 205 const std::string& css) OVERRIDE; |
| 206 virtual bool IsRenderViewLive() const OVERRIDE; | 206 virtual bool IsRenderViewLive() const OVERRIDE; |
| 207 virtual void NotifyContextMenuClosed( | 207 virtual void NotifyContextMenuClosed( |
| 208 const CustomContextMenuContext& context) OVERRIDE; | 208 const CustomContextMenuContext& context) OVERRIDE; |
| 209 virtual void NotifyMoveOrResizeStarted() OVERRIDE; | 209 virtual void NotifyMoveOrResizeStarted() OVERRIDE; |
| 210 virtual void ReloadFrame() OVERRIDE; | 210 virtual void ReloadFrame() OVERRIDE; |
| 211 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; | 211 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; |
| 212 virtual void SetHostsGuest(bool hosts_guest) OVERRIDE; |
| 212 virtual void SetWebUIProperty(const std::string& name, | 213 virtual void SetWebUIProperty(const std::string& name, |
| 213 const std::string& value) OVERRIDE; | 214 const std::string& value) OVERRIDE; |
| 214 virtual void SetZoomLevel(double level) OVERRIDE; | 215 virtual void SetZoomLevel(double level) OVERRIDE; |
| 215 virtual void Zoom(PageZoom zoom) OVERRIDE; | 216 virtual void Zoom(PageZoom zoom) OVERRIDE; |
| 216 virtual void SyncRendererPrefs() OVERRIDE; | 217 virtual void SyncRendererPrefs() OVERRIDE; |
| 217 virtual void ToggleSpeechInput() OVERRIDE; | 218 virtual void ToggleSpeechInput() OVERRIDE; |
| 218 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; | 219 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; |
| 219 | 220 |
| 220 void set_delegate(RenderViewHostDelegate* d) { | 221 void set_delegate(RenderViewHostDelegate* d) { |
| 221 CHECK(d); // http://crbug.com/82827 | 222 CHECK(d); // http://crbug.com/82827 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 scoped_refptr<SiteInstanceImpl> instance_; | 531 scoped_refptr<SiteInstanceImpl> instance_; |
| 531 | 532 |
| 532 // true if we are currently waiting for a response for drag context | 533 // true if we are currently waiting for a response for drag context |
| 533 // information. | 534 // information. |
| 534 bool waiting_for_drag_context_response_; | 535 bool waiting_for_drag_context_response_; |
| 535 | 536 |
| 536 // A bitwise OR of bindings types that have been enabled for this RenderView. | 537 // A bitwise OR of bindings types that have been enabled for this RenderView. |
| 537 // See BindingsPolicy for details. | 538 // See BindingsPolicy for details. |
| 538 int enabled_bindings_; | 539 int enabled_bindings_; |
| 539 | 540 |
| 541 // Indicates whether or not this RenderViewHost is set up as a host |
| 542 // of a guest RenderView. |
| 543 bool hosts_guest_; |
| 544 |
| 540 // The request_id for the pending cross-site request. Set to -1 if | 545 // The request_id for the pending cross-site request. Set to -1 if |
| 541 // there is a pending request, but we have not yet started the unload | 546 // there is a pending request, but we have not yet started the unload |
| 542 // for the current page. Set to the request_id value of the pending | 547 // for the current page. Set to the request_id value of the pending |
| 543 // request once we have gotten the some data for the pending page | 548 // request once we have gotten the some data for the pending page |
| 544 // and thus started the unload process. | 549 // and thus started the unload process. |
| 545 int pending_request_id_; | 550 int pending_request_id_; |
| 546 | 551 |
| 547 // Whether we should buffer outgoing Navigate messages rather than sending | 552 // Whether we should buffer outgoing Navigate messages rather than sending |
| 548 // them. This will be true when a RenderViewHost is created for a cross-site | 553 // them. This will be true when a RenderViewHost is created for a cross-site |
| 549 // request, until we hear back from the onbeforeunload handler of the old | 554 // request, until we hear back from the onbeforeunload handler of the old |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 621 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 617 }; | 622 }; |
| 618 | 623 |
| 619 #if defined(COMPILER_MSVC) | 624 #if defined(COMPILER_MSVC) |
| 620 #pragma warning(pop) | 625 #pragma warning(pop) |
| 621 #endif | 626 #endif |
| 622 | 627 |
| 623 } // namespace content | 628 } // namespace content |
| 624 | 629 |
| 625 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 630 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |