| 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 21 matching lines...) Expand all Loading... |
| 32 #include "ui/gfx/native_widget_types.h" | 32 #include "ui/gfx/native_widget_types.h" |
| 33 #include "webkit/glue/resource_type.h" | 33 #include "webkit/glue/resource_type.h" |
| 34 | 34 |
| 35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 36 #include "base/win/scoped_handle.h" | 36 #include "base/win/scoped_handle.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 namespace gfx { | 39 namespace gfx { |
| 40 class Rect; | 40 class Rect; |
| 41 } | 41 } |
| 42 namespace webkit_glue { |
| 43 struct WebIntentData; |
| 44 } |
| 42 | 45 |
| 43 class DownloadItem; | 46 class DownloadItem; |
| 44 class LoadNotificationDetails; | 47 class LoadNotificationDetails; |
| 45 struct RendererPreferences; | 48 struct RendererPreferences; |
| 46 class RenderViewHost; | 49 class RenderViewHost; |
| 47 class SessionStorageNamespace; | 50 class SessionStorageNamespace; |
| 48 class SiteInstance; | 51 class SiteInstance; |
| 49 class SkBitmap; | 52 class SkBitmap; |
| 50 class TabContentsDelegate; | 53 class TabContentsDelegate; |
| 51 class TabContentsObserver; | 54 class TabContentsObserver; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 void OnEnumerateDirectory(int request_id, const FilePath& path); | 570 void OnEnumerateDirectory(int request_id, const FilePath& path); |
| 568 void OnJSOutOfMemory(); | 571 void OnJSOutOfMemory(); |
| 569 void OnRegisterProtocolHandler(const std::string& protocol, | 572 void OnRegisterProtocolHandler(const std::string& protocol, |
| 570 const GURL& url, | 573 const GURL& url, |
| 571 const string16& title); | 574 const string16& title); |
| 572 void OnRegisterIntentHandler(const string16& action, | 575 void OnRegisterIntentHandler(const string16& action, |
| 573 const string16& type, | 576 const string16& type, |
| 574 const string16& href, | 577 const string16& href, |
| 575 const string16& title); | 578 const string16& title); |
| 576 void OnWebIntentDispatch(const IPC::Message& message, | 579 void OnWebIntentDispatch(const IPC::Message& message, |
| 577 const string16& action, | 580 const webkit_glue::WebIntentData& intent, |
| 578 const string16& type, | |
| 579 const string16& data, | |
| 580 int intent_id); | 581 int intent_id); |
| 581 void OnFindReply(int request_id, int number_of_matches, | 582 void OnFindReply(int request_id, int number_of_matches, |
| 582 const gfx::Rect& selection_rect, int active_match_ordinal, | 583 const gfx::Rect& selection_rect, int active_match_ordinal, |
| 583 bool final_update); | 584 bool final_update); |
| 584 void OnCrashedPlugin(const FilePath& plugin_path); | 585 void OnCrashedPlugin(const FilePath& plugin_path); |
| 585 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 586 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 586 | 587 |
| 587 // Changes the IsLoading state and notifies delegate as needed | 588 // Changes the IsLoading state and notifies delegate as needed |
| 588 // |details| is used to provide details on the load that just finished | 589 // |details| is used to provide details on the load that just finished |
| 589 // (but can be null if not applicable). Can be overridden. | 590 // (but can be null if not applicable). Can be overridden. |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 ObserverList<TabContentsObserver> observers_; | 887 ObserverList<TabContentsObserver> observers_; |
| 887 | 888 |
| 888 // Content restrictions, used to disable print/copy etc based on content's | 889 // Content restrictions, used to disable print/copy etc based on content's |
| 889 // (full-page plugins for now only) permissions. | 890 // (full-page plugins for now only) permissions. |
| 890 int content_restrictions_; | 891 int content_restrictions_; |
| 891 | 892 |
| 892 DISALLOW_COPY_AND_ASSIGN(TabContents); | 893 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 893 }; | 894 }; |
| 894 | 895 |
| 895 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 896 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |