| 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // See WebContents::Create for a description of these parameters. | 63 // See WebContents::Create for a description of these parameters. |
| 64 WebContentsImpl(content::BrowserContext* browser_context, | 64 WebContentsImpl(content::BrowserContext* browser_context, |
| 65 content::SiteInstance* site_instance, | 65 content::SiteInstance* site_instance, |
| 66 int routing_id, | 66 int routing_id, |
| 67 const WebContentsImpl* base_web_contents, | 67 const WebContentsImpl* base_web_contents, |
| 68 WebContentsImpl* opener, | 68 WebContentsImpl* opener, |
| 69 SessionStorageNamespaceImpl* session_storage_namespace); | 69 SessionStorageNamespaceImpl* session_storage_namespace); |
| 70 virtual ~WebContentsImpl(); | 70 virtual ~WebContentsImpl(); |
| 71 | 71 |
| 72 // Returns the content specific prefs for the given RVH. | 72 // Returns the content specific prefs for the given RVH. |
| 73 static WebPreferences GetWebkitPrefs( | 73 static webkit_glue::WebPreferences GetWebkitPrefs( |
| 74 content::RenderViewHost* rvh, const GURL& url); | 74 content::RenderViewHost* rvh, const GURL& url); |
| 75 | 75 |
| 76 // Returns the SavePackage which manages the page saving job. May be NULL. | 76 // Returns the SavePackage which manages the page saving job. May be NULL. |
| 77 SavePackage* save_package() const { return save_package_.get(); } | 77 SavePackage* save_package() const { return save_package_.get(); } |
| 78 | 78 |
| 79 // Updates the max page ID for the current SiteInstance in this | 79 // Updates the max page ID for the current SiteInstance in this |
| 80 // WebContentsImpl to be at least |page_id|. | 80 // WebContentsImpl to be at least |page_id|. |
| 81 void UpdateMaxPageID(int32 page_id); | 81 void UpdateMaxPageID(int32 page_id); |
| 82 | 82 |
| 83 // Updates the max page ID for the given SiteInstance in this WebContentsImpl | 83 // Updates the max page ID for the given SiteInstance in this WebContentsImpl |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 const GURL& frame_url, | 315 const GURL& frame_url, |
| 316 ui::JavascriptMessageType type, | 316 ui::JavascriptMessageType type, |
| 317 IPC::Message* reply_msg, | 317 IPC::Message* reply_msg, |
| 318 bool* did_suppress_message) OVERRIDE; | 318 bool* did_suppress_message) OVERRIDE; |
| 319 virtual void RunBeforeUnloadConfirm(content::RenderViewHost* rvh, | 319 virtual void RunBeforeUnloadConfirm(content::RenderViewHost* rvh, |
| 320 const string16& message, | 320 const string16& message, |
| 321 bool is_reload, | 321 bool is_reload, |
| 322 IPC::Message* reply_msg) OVERRIDE; | 322 IPC::Message* reply_msg) OVERRIDE; |
| 323 virtual content::RendererPreferences GetRendererPrefs( | 323 virtual content::RendererPreferences GetRendererPrefs( |
| 324 content::BrowserContext* browser_context) const OVERRIDE; | 324 content::BrowserContext* browser_context) const OVERRIDE; |
| 325 virtual WebPreferences GetWebkitPrefs() OVERRIDE; | 325 virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE; |
| 326 virtual void OnUserGesture() OVERRIDE; | 326 virtual void OnUserGesture() OVERRIDE; |
| 327 virtual void OnIgnoredUIEvent() OVERRIDE; | 327 virtual void OnIgnoredUIEvent() OVERRIDE; |
| 328 virtual void RendererUnresponsive(content::RenderViewHost* render_view_host, | 328 virtual void RendererUnresponsive(content::RenderViewHost* render_view_host, |
| 329 bool is_during_unload) OVERRIDE; | 329 bool is_during_unload) OVERRIDE; |
| 330 virtual void RendererResponsive( | 330 virtual void RendererResponsive( |
| 331 content::RenderViewHost* render_view_host) OVERRIDE; | 331 content::RenderViewHost* render_view_host) OVERRIDE; |
| 332 virtual void LoadStateChanged(const GURL& url, | 332 virtual void LoadStateChanged(const GURL& url, |
| 333 const net::LoadStateWithParam& load_state, | 333 const net::LoadStateWithParam& load_state, |
| 334 uint64 upload_position, | 334 uint64 upload_position, |
| 335 uint64 upload_size) OVERRIDE; | 335 uint64 upload_size) OVERRIDE; |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS. | 705 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS. |
| 706 content::ViewType view_type_; | 706 content::ViewType view_type_; |
| 707 | 707 |
| 708 // Color chooser that was opened by this tab. | 708 // Color chooser that was opened by this tab. |
| 709 content::ColorChooser* color_chooser_; | 709 content::ColorChooser* color_chooser_; |
| 710 | 710 |
| 711 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 711 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 712 }; | 712 }; |
| 713 | 713 |
| 714 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 714 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |