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

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

Issue 6368011: Clean up WebNavigationObserver by taking out password specific callbacks, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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) 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 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 <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {
55 class PrintViewManager; 55 class PrintViewManager;
56 } 56 }
57 57
58 namespace webkit_glue {
59 struct PasswordForm;
60 }
61
62 class AutocompleteHistoryManager; 58 class AutocompleteHistoryManager;
63 class AutoFillManager; 59 class AutoFillManager;
64 class BlockedContentContainer; 60 class BlockedContentContainer;
65 class DOMUI; 61 class DOMUI;
66 class DownloadItem; 62 class DownloadItem;
67 class Extension; 63 class Extension;
68 class FileSelectHelper; 64 class FileSelectHelper;
69 class InfoBarDelegate; 65 class InfoBarDelegate;
70 class LoadNotificationDetails; 66 class LoadNotificationDetails;
71 class OmniboxSearchHint; 67 class OmniboxSearchHint;
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 756
761 private: 757 private:
762 friend class NavigationController; 758 friend class NavigationController;
763 // Used to access the child_windows_ (ConstrainedWindowList) for testing 759 // Used to access the child_windows_ (ConstrainedWindowList) for testing
764 // automation purposes. 760 // automation purposes.
765 friend class TestingAutomationProvider; 761 friend class TestingAutomationProvider;
766 762
767 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, NoJSMessageOnInterstitials); 763 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, NoJSMessageOnInterstitials);
768 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, UpdateTitle); 764 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, UpdateTitle);
769 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, CrossSiteCantPreemptAfterUnload); 765 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, CrossSiteCantPreemptAfterUnload);
766 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles);
770 767
771 // Temporary until the view/contents separation is complete. 768 // Temporary until the view/contents separation is complete.
772 friend class TabContentsView; 769 friend class TabContentsView;
773 #if defined(OS_WIN) 770 #if defined(OS_WIN)
774 friend class TabContentsViewWin; 771 friend class TabContentsViewWin;
775 #elif defined(OS_MACOSX) 772 #elif defined(OS_MACOSX)
776 friend class TabContentsViewMac; 773 friend class TabContentsViewMac;
777 #elif defined(TOOLKIT_USES_GTK) 774 #elif defined(TOOLKIT_USES_GTK)
778 friend class TabContentsViewGtk; 775 friend class TabContentsViewGtk;
779 #endif 776 #endif
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 const std::wstring& default_prompt, 1004 const std::wstring& default_prompt,
1008 const GURL& frame_url, 1005 const GURL& frame_url,
1009 const int flags, 1006 const int flags,
1010 IPC::Message* reply_msg, 1007 IPC::Message* reply_msg,
1011 bool* did_suppress_message); 1008 bool* did_suppress_message);
1012 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 1009 virtual void RunBeforeUnloadConfirm(const std::wstring& message,
1013 IPC::Message* reply_msg); 1010 IPC::Message* reply_msg);
1014 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, 1011 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
1015 const std::string& json_arguments, 1012 const std::string& json_arguments,
1016 IPC::Message* reply_msg); 1013 IPC::Message* reply_msg);
1017 virtual void PasswordFormsFound(
1018 const std::vector<webkit_glue::PasswordForm>& forms);
1019 virtual void PasswordFormsVisible(
1020 const std::vector<webkit_glue::PasswordForm>& visible_forms);
1021 virtual void PageHasOSDD(RenderViewHost* render_view_host, 1014 virtual void PageHasOSDD(RenderViewHost* render_view_host,
1022 int32 page_id, 1015 int32 page_id,
1023 const GURL& url, 1016 const GURL& url,
1024 const ViewHostMsg_PageHasOSDD_Type& provider_type); 1017 const ViewHostMsg_PageHasOSDD_Type& provider_type);
1025 virtual GURL GetAlternateErrorPageURL() const; 1018 virtual GURL GetAlternateErrorPageURL() const;
1026 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 1019 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
1027 virtual WebPreferences GetWebkitPrefs(); 1020 virtual WebPreferences GetWebkitPrefs();
1028 virtual void OnIgnoredUIEvent(); 1021 virtual void OnIgnoredUIEvent();
1029 virtual void OnJSOutOfMemory(); 1022 virtual void OnJSOutOfMemory();
1030 virtual void OnCrossSiteResponse(int new_render_process_host_id, 1023 virtual void OnCrossSiteResponse(int new_render_process_host_id,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 // remember it. 1335 // remember it.
1343 bool temporary_zoom_settings_; 1336 bool temporary_zoom_settings_;
1344 1337
1345 // A list of observers notified when page state changes. Weak references. 1338 // A list of observers notified when page state changes. Weak references.
1346 ObserverList<WebNavigationObserver> web_navigation_observers_; 1339 ObserverList<WebNavigationObserver> web_navigation_observers_;
1347 1340
1348 // Content restrictions, used to disable print/copy etc based on content's 1341 // Content restrictions, used to disable print/copy etc based on content's
1349 // (full-page plugins for now only) permissions. 1342 // (full-page plugins for now only) permissions.
1350 int content_restrictions_; 1343 int content_restrictions_;
1351 1344
1352 // All the IPC message filters for this render view.
1353 std::vector<IPC::Channel::Listener*> message_filters_;
1354
1355 DISALLOW_COPY_AND_ASSIGN(TabContents); 1345 DISALLOW_COPY_AND_ASSIGN(TabContents);
1356 }; 1346 };
1357 1347
1358 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1348 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698