summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-13 10:29:07 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-13 10:29:07 +0000
commit5c2387504ee4124ce0521212d895bae87cf08d8f (patch)
tree3e9c3539afbd5cb96af547a012fd99ad4f1aecac /chrome/browser/browser.h
parent94fe52ee5bdf2d2feaa771537164909250ec174f (diff)
downloadchromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.zip
chromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.tar.gz
chromium_src-5c2387504ee4124ce0521212d895bae87cf08d8f.tar.bz2
Reduce header dependencies in browser/
- remove unneeded header includes - move implementation bits out of headers - more explicit header deps In my scan of headers I got up to (including) dom_ui. Review URL: http://codereview.chromium.org/126071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 16af168f..67aa5425 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -5,25 +5,24 @@
#ifndef CHROME_BROWSER_BROWSER_H_
#define CHROME_BROWSER_BROWSER_H_
-#include "base/basictypes.h"
-
#include <set>
#include <vector>
+#include "base/basictypes.h"
#include "base/gfx/rect.h"
#include "base/scoped_ptr.h"
-#include "chrome/browser/browser_process.h"
+#include "base/task.h"
#include "chrome/browser/command_updater.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "chrome/browser/sessions/session_id.h"
#include "chrome/browser/shell_dialogs.h"
-#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tabs/tab_strip_model.h"
+#include "chrome/browser/tab_contents/page_navigator.h"
#include "chrome/browser/tab_contents/tab_contents_delegate.h"
#include "chrome/browser/toolbar_model.h"
#include "chrome/common/notification_registrar.h"
#include "chrome/common/pref_member.h"
-#include "third_party/skia/include/core/SkBitmap.h"
+#include "testing/gtest/include/gtest/gtest_prod.h"
class BrowserIdleTimer;
class BrowserWindow;
@@ -33,6 +32,7 @@ class GoButton;
class LocationBar;
class PrefService;
class Profile;
+class SkBitmap;
class StatusBubble;
class TabNavigation;
@@ -114,9 +114,8 @@ class Browser : public TabStripModelDelegate,
Type type() const { return type_; }
Profile* profile() const { return profile_; }
- const std::vector<std::wstring>& user_data_dir_profiles() const {
- return g_browser_process->user_data_dir_profiles();
- }
+ const std::vector<std::wstring>& user_data_dir_profiles() const;
+
#if defined(UNIT_TEST)
// Sets the BrowserWindow. This is intended for testing and generally not
// useful outside of testing. Use CreateBrowserWindow outside of testing, or
@@ -135,9 +134,7 @@ class Browser : public TabStripModelDelegate,
// Setters /////////////////////////////////////////////////////////////////
- void set_user_data_dir_profiles(const std::vector<std::wstring>& profiles) {
- g_browser_process->user_data_dir_profiles() = profiles;
- }
+ void set_user_data_dir_profiles(const std::vector<std::wstring>& profiles);
// Browser Creation Helpers /////////////////////////////////////////////////
@@ -685,13 +682,7 @@ class Browser : public TabStripModelDelegate,
virtual ~BrowserToolbarModel() { }
// ToolbarModel implementation.
- virtual NavigationController* GetNavigationController() {
- // This |current_tab| can be NULL during the initialization of the
- // toolbar during window creation (i.e. before any tabs have been added
- // to the window).
- TabContents* current_tab = browser_->GetSelectedTabContents();
- return current_tab ? &current_tab->controller() : NULL;
- }
+ virtual NavigationController* GetNavigationController();
private:
Browser* browser_;