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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 4979003: Implement web app definition parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nacl64 build Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/tab_contents/language_state.h" 31 #include "chrome/browser/tab_contents/language_state.h"
32 #include "chrome/browser/tab_contents/navigation_controller.h" 32 #include "chrome/browser/tab_contents/navigation_controller.h"
33 #include "chrome/browser/tab_contents/navigation_entry.h" 33 #include "chrome/browser/tab_contents/navigation_entry.h"
34 #include "chrome/browser/tab_contents/page_navigator.h" 34 #include "chrome/browser/tab_contents/page_navigator.h"
35 #include "chrome/browser/tab_contents/render_view_host_manager.h" 35 #include "chrome/browser/tab_contents/render_view_host_manager.h"
36 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" 36 #include "chrome/browser/tab_contents/tab_specific_content_settings.h"
37 #include "chrome/common/notification_registrar.h" 37 #include "chrome/common/notification_registrar.h"
38 #include "chrome/common/property_bag.h" 38 #include "chrome/common/property_bag.h"
39 #include "chrome/common/renderer_preferences.h" 39 #include "chrome/common/renderer_preferences.h"
40 #include "chrome/common/translate_errors.h" 40 #include "chrome/common/translate_errors.h"
41 #include "chrome/common/web_apps.h"
41 #include "gfx/native_widget_types.h" 42 #include "gfx/native_widget_types.h"
42 #include "gfx/rect.h" 43 #include "gfx/rect.h"
43 #include "net/base/load_states.h" 44 #include "net/base/load_states.h"
44 #include "webkit/glue/dom_operations.h"
45 45
46 namespace gfx { 46 namespace gfx {
47 class Rect; 47 class Rect;
48 } 48 }
49 49
50 namespace history { 50 namespace history {
51 class HistoryAddPageArgs; 51 class HistoryAddPageArgs;
52 } 52 }
53 53
54 namespace printing { 54 namespace printing {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 bool waiting_for_response() const { return waiting_for_response_; } 279 bool waiting_for_response() const { return waiting_for_response_; }
280 280
281 bool is_starred() const { return is_starred_; } 281 bool is_starred() const { return is_starred_; }
282 282
283 const std::string& encoding() const { return encoding_; } 283 const std::string& encoding() const { return encoding_; }
284 void set_encoding(const std::string& encoding); 284 void set_encoding(const std::string& encoding);
285 void reset_encoding() { 285 void reset_encoding() {
286 encoding_.clear(); 286 encoding_.clear();
287 } 287 }
288 288
289 const webkit_glue::WebApplicationInfo& web_app_info() const { 289 const WebApplicationInfo& web_app_info() const {
290 return web_app_info_; 290 return web_app_info_;
291 } 291 }
292 292
293 const SkBitmap& app_icon() const { return app_icon_; } 293 const SkBitmap& app_icon() const { return app_icon_; }
294 294
295 // Sets an app icon associated with TabContents and fires an INVALIDATE_TITLE 295 // Sets an app icon associated with TabContents and fires an INVALIDATE_TITLE
296 // navigation state change to trigger repaint of title. 296 // navigation state change to trigger repaint of title.
297 void SetAppIcon(const SkBitmap& app_icon); 297 void SetAppIcon(const SkBitmap& app_icon);
298 298
299 bool displayed_insecure_content() const { 299 bool displayed_insecure_content() const {
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 virtual void OnUserGesture(); 862 virtual void OnUserGesture();
863 virtual void OnFindReply(int request_id, 863 virtual void OnFindReply(int request_id,
864 int number_of_matches, 864 int number_of_matches,
865 const gfx::Rect& selection_rect, 865 const gfx::Rect& selection_rect,
866 int active_match_ordinal, 866 int active_match_ordinal,
867 bool final_update); 867 bool final_update);
868 virtual void GoToEntryAtOffset(int offset); 868 virtual void GoToEntryAtOffset(int offset);
869 virtual void OnMissingPluginStatus(int status); 869 virtual void OnMissingPluginStatus(int status);
870 virtual void OnCrashedPlugin(const FilePath& plugin_path); 870 virtual void OnCrashedPlugin(const FilePath& plugin_path);
871 virtual void OnCrashedWorker(); 871 virtual void OnCrashedWorker();
872 virtual void OnDidGetApplicationInfo( 872 virtual void OnDidGetApplicationInfo(int32 page_id,
873 int32 page_id, 873 const WebApplicationInfo& info);
874 const webkit_glue::WebApplicationInfo& info);
875 virtual void OnDisabledOutdatedPlugin(const string16& name, 874 virtual void OnDisabledOutdatedPlugin(const string16& name,
876 const GURL& update_url); 875 const GURL& update_url);
877 virtual void OnPageContents(const GURL& url, 876 virtual void OnPageContents(const GURL& url,
878 int renderer_process_id, 877 int renderer_process_id,
879 int32 page_id, 878 int32 page_id,
880 const string16& contents, 879 const string16& contents,
881 const std::string& language, 880 const std::string& language,
882 bool page_translatable); 881 bool page_translatable);
883 virtual void OnPageTranslated(int32 page_id, 882 virtual void OnPageTranslated(int32 page_id,
884 const std::string& original_lang, 883 const std::string& original_lang,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 // FileSelectHelper, lazily created. 1109 // FileSelectHelper, lazily created.
1111 scoped_ptr<FileSelectHelper> file_select_helper_; 1110 scoped_ptr<FileSelectHelper> file_select_helper_;
1112 1111
1113 // Handles drag and drop event forwarding to extensions. 1112 // Handles drag and drop event forwarding to extensions.
1114 BookmarkDrag* bookmark_drag_; 1113 BookmarkDrag* bookmark_drag_;
1115 1114
1116 // Handles downloading favicons. 1115 // Handles downloading favicons.
1117 FavIconHelper fav_icon_helper_; 1116 FavIconHelper fav_icon_helper_;
1118 1117
1119 // Cached web app info data. 1118 // Cached web app info data.
1120 webkit_glue::WebApplicationInfo web_app_info_; 1119 WebApplicationInfo web_app_info_;
1121 1120
1122 // Cached web app icon. 1121 // Cached web app icon.
1123 SkBitmap app_icon_; 1122 SkBitmap app_icon_;
1124 1123
1125 // RenderViewHost::ContentSettingsDelegate. 1124 // RenderViewHost::ContentSettingsDelegate.
1126 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; 1125 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_;
1127 1126
1128 // Data for loading state ---------------------------------------------------- 1127 // Data for loading state ----------------------------------------------------
1129 1128
1130 // Indicates whether we're currently loading a resource. 1129 // Indicates whether we're currently loading a resource.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 // Content restrictions, used to disable print/copy etc based on content's 1309 // Content restrictions, used to disable print/copy etc based on content's
1311 // (full-page plugins for now only) permissions. 1310 // (full-page plugins for now only) permissions.
1312 int content_restrictions_; 1311 int content_restrictions_;
1313 1312
1314 // --------------------------------------------------------------------------- 1313 // ---------------------------------------------------------------------------
1315 1314
1316 DISALLOW_COPY_AND_ASSIGN(TabContents); 1315 DISALLOW_COPY_AND_ASSIGN(TabContents);
1317 }; 1316 };
1318 1317
1319 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1318 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698