| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 struct RendererPreferences; | 47 struct RendererPreferences; |
| 48 class RenderViewHost; | 48 class RenderViewHost; |
| 49 class SessionStorageNamespace; | 49 class SessionStorageNamespace; |
| 50 class SiteInstance; | 50 class SiteInstance; |
| 51 class SkBitmap; | 51 class SkBitmap; |
| 52 class TabContentsDelegate; | 52 class TabContentsDelegate; |
| 53 class TabContentsObserver; | 53 class TabContentsObserver; |
| 54 class TabContentsView; | 54 class TabContentsView; |
| 55 struct ThumbnailScore; | 55 struct ThumbnailScore; |
| 56 class URLPattern; | 56 class URLPattern; |
| 57 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
| 57 struct ViewHostMsg_FrameNavigate_Params; | 58 struct ViewHostMsg_FrameNavigate_Params; |
| 59 struct ViewHostMsg_RunFileChooser_Params; |
| 58 struct WebPreferences; | 60 struct WebPreferences; |
| 59 class WebUI; | 61 class WebUI; |
| 60 struct ViewHostMsg_RunFileChooser_Params; | |
| 61 | 62 |
| 62 // Describes what goes in the main content area of a tab. TabContents is | 63 // Describes what goes in the main content area of a tab. TabContents is |
| 63 // the only type of TabContents, and these should be merged together. | 64 // the only type of TabContents, and these should be merged together. |
| 64 class CONTENT_EXPORT TabContents : public PageNavigator, | 65 class CONTENT_EXPORT TabContents : public PageNavigator, |
| 65 public RenderViewHostDelegate, | 66 public RenderViewHostDelegate, |
| 66 public RenderViewHostManager::Delegate, | 67 public RenderViewHostManager::Delegate, |
| 67 public content::JavaScriptDialogDelegate { | 68 public content::JavaScriptDialogDelegate { |
| 68 public: | 69 public: |
| 69 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it | 70 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it |
| 70 // what has changed. Combine them to update more than one thing. | 71 // what has changed. Combine them to update more than one thing. |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 505 |
| 505 // Message handlers. | 506 // Message handlers. |
| 506 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 507 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
| 507 bool main_frame, | 508 bool main_frame, |
| 508 const GURL& opener_url, | 509 const GURL& opener_url, |
| 509 const GURL& url); | 510 const GURL& url); |
| 510 void OnDidRedirectProvisionalLoad(int32 page_id, | 511 void OnDidRedirectProvisionalLoad(int32 page_id, |
| 511 const GURL& opener_url, | 512 const GURL& opener_url, |
| 512 const GURL& source_url, | 513 const GURL& source_url, |
| 513 const GURL& target_url); | 514 const GURL& target_url); |
| 514 void OnDidFailProvisionalLoadWithError(int64 frame_id, | 515 void OnDidFailProvisionalLoadWithError( |
| 515 bool main_frame, | 516 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); |
| 516 int error_code, | |
| 517 const GURL& url, | |
| 518 bool showing_repost_interstitial); | |
| 519 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 517 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
| 520 const std::string& security_info, | 518 const std::string& security_info, |
| 521 const std::string& http_request, | 519 const std::string& http_request, |
| 522 ResourceType::Type resource_type); | 520 ResourceType::Type resource_type); |
| 523 void OnDidDisplayInsecureContent(); | 521 void OnDidDisplayInsecureContent(); |
| 524 void OnDidRunInsecureContent(const std::string& security_origin, | 522 void OnDidRunInsecureContent(const std::string& security_origin, |
| 525 const GURL& target_url); | 523 const GURL& target_url); |
| 526 void OnDocumentLoadedInFrame(int64 frame_id); | 524 void OnDocumentLoadedInFrame(int64 frame_id); |
| 527 void OnDidFinishLoad(int64 frame_id); | 525 void OnDidFinishLoad(int64 frame_id); |
| 528 void OnUpdateContentRestrictions(int restrictions); | 526 void OnUpdateContentRestrictions(int restrictions); |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 ObserverList<TabContentsObserver> observers_; | 844 ObserverList<TabContentsObserver> observers_; |
| 847 | 845 |
| 848 // Content restrictions, used to disable print/copy etc based on content's | 846 // Content restrictions, used to disable print/copy etc based on content's |
| 849 // (full-page plugins for now only) permissions. | 847 // (full-page plugins for now only) permissions. |
| 850 int content_restrictions_; | 848 int content_restrictions_; |
| 851 | 849 |
| 852 DISALLOW_COPY_AND_ASSIGN(TabContents); | 850 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 853 }; | 851 }; |
| 854 | 852 |
| 855 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 853 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |