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

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: Cleand up userAgentOverride 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // A list of observers notified when page state changes. Weak references. 652 // A list of observers notified when page state changes. Weak references.
653 // This MUST be listed above render_manager_ since at destruction time the 653 // This MUST be listed above render_manager_ since at destruction time the
654 // latter might cause RenderViewHost's destructor to call us and we might use 654 // latter might cause RenderViewHost's destructor to call us and we might use
655 // the observer list then. 655 // the observer list then.
656 ObserverList<content::WebContentsObserver> observers_; 656 ObserverList<content::WebContentsObserver> observers_;
657 657
658 // The tab that opened this tab, if any. Will be set to null if the opener 658 // The tab that opened this tab, if any. Will be set to null if the opener
659 // is closed. 659 // is closed.
660 WebContentsImpl* opener_; 660 WebContentsImpl* opener_;
661 661
662 // User agent to use if a NavigationEntry requires that the default user agent
663 // is overridden.
664 std::string user_agent_override_;
665
666 // Helper classes ------------------------------------------------------------ 662 // Helper classes ------------------------------------------------------------
667 663
668 // Manages creation and swapping of render views. 664 // Manages creation and swapping of render views.
669 RenderViewHostManager render_manager_; 665 RenderViewHostManager render_manager_;
670 666
671 // Manages injecting Java objects into all RenderViewHosts associated with 667 // Manages injecting Java objects into all RenderViewHosts associated with
672 // this WebContentsImpl. 668 // this WebContentsImpl.
673 scoped_ptr<JavaBridgeDispatcherHostManager> 669 scoped_ptr<JavaBridgeDispatcherHostManager>
674 java_bridge_dispatcher_host_manager_; 670 java_bridge_dispatcher_host_manager_;
675 671
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 content::ColorChooser* color_chooser_; 788 content::ColorChooser* color_chooser_;
793 789
794 // This must be at the end, or else we might get notifications and use other 790 // This must be at the end, or else we might get notifications and use other
795 // member variables that are gone. 791 // member variables that are gone.
796 content::NotificationRegistrar registrar_; 792 content::NotificationRegistrar registrar_;
797 793
798 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 794 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
799 }; 795 };
800 796
801 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 797 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698