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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 10450002: Transfer user agent override info between browser and renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Default to not overriding in prerender config Created 8 years, 6 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
OLDNEW
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // A list of observers notified when page state changes. Weak references. 658 // A list of observers notified when page state changes. Weak references.
659 // This MUST be listed above render_manager_ since at destruction time the 659 // This MUST be listed above render_manager_ since at destruction time the
660 // latter might cause RenderViewHost's destructor to call us and we might use 660 // latter might cause RenderViewHost's destructor to call us and we might use
661 // the observer list then. 661 // the observer list then.
662 ObserverList<content::WebContentsObserver> observers_; 662 ObserverList<content::WebContentsObserver> observers_;
663 663
664 // The tab that opened this tab, if any. Will be set to null if the opener 664 // The tab that opened this tab, if any. Will be set to null if the opener
665 // is closed. 665 // is closed.
666 WebContentsImpl* opener_; 666 WebContentsImpl* opener_;
667 667
668 // User agent to use if a NavigationEntry requires that the default user agent
669 // is overridden.
670 std::string user_agent_override_;
671
672 // Helper classes ------------------------------------------------------------ 668 // Helper classes ------------------------------------------------------------
673 669
674 // Manages creation and swapping of render views. 670 // Manages creation and swapping of render views.
675 RenderViewHostManager render_manager_; 671 RenderViewHostManager render_manager_;
676 672
677 // Manages injecting Java objects into all RenderViewHosts associated with 673 // Manages injecting Java objects into all RenderViewHosts associated with
678 // this WebContentsImpl. 674 // this WebContentsImpl.
679 scoped_ptr<JavaBridgeDispatcherHostManager> 675 scoped_ptr<JavaBridgeDispatcherHostManager>
680 java_bridge_dispatcher_host_manager_; 676 java_bridge_dispatcher_host_manager_;
681 677
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 content::ColorChooser* color_chooser_; 794 content::ColorChooser* color_chooser_;
799 795
800 // This must be at the end, or else we might get notifications and use other 796 // This must be at the end, or else we might get notifications and use other
801 // member variables that are gone. 797 // member variables that are gone.
802 content::NotificationRegistrar registrar_; 798 content::NotificationRegistrar registrar_;
803 799
804 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 800 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
805 }; 801 };
806 802
807 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 803 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698