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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 2046713002: Removing unused SetBrowserContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // Disables checking for a repost and prompting the user. This is used during 224 // Disables checking for a repost and prompting the user. This is used during
225 // testing. 225 // testing.
226 CONTENT_EXPORT static void DisablePromptOnRepost(); 226 CONTENT_EXPORT static void DisablePromptOnRepost();
227 227
228 virtual ~NavigationController() {} 228 virtual ~NavigationController() {}
229 229
230 // Returns the web contents associated with this controller. It can never be 230 // Returns the web contents associated with this controller. It can never be
231 // nullptr. 231 // nullptr.
232 virtual WebContents* GetWebContents() const = 0; 232 virtual WebContents* GetWebContents() const = 0;
233 233
234 // Get/set the browser context for this controller. It can never be nullptr. 234 // Get the browser context for this controller. It can never be nullptr.
235 virtual BrowserContext* GetBrowserContext() const = 0; 235 virtual BrowserContext* GetBrowserContext() const = 0;
236 virtual void SetBrowserContext(BrowserContext* browser_context) = 0;
237 236
238 // Initializes this NavigationController with the given saved navigations, 237 // Initializes this NavigationController with the given saved navigations,
239 // using |selected_navigation| as the currently loaded entry. Before this call 238 // using |selected_navigation| as the currently loaded entry. Before this call
240 // the controller should be unused (there should be no current entry). |type| 239 // the controller should be unused (there should be no current entry). |type|
241 // indicates where the restor comes from. This takes ownership of the 240 // indicates where the restor comes from. This takes ownership of the
242 // NavigationEntrys in |entries| and clears it out. This is used for session 241 // NavigationEntrys in |entries| and clears it out. This is used for session
243 // restore. 242 // restore.
244 virtual void Restore( 243 virtual void Restore(
245 int selected_navigation, 244 int selected_navigation,
246 RestoreType type, 245 RestoreType type,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 495
497 private: 496 private:
498 // This interface should only be implemented inside content. 497 // This interface should only be implemented inside content.
499 friend class NavigationControllerImpl; 498 friend class NavigationControllerImpl;
500 NavigationController() {} 499 NavigationController() {}
501 }; 500 };
502 501
503 } // namespace content 502 } // namespace content
504 503
505 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 504 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698