OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/browser.h" | 5 #include "chrome/browser/browser.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif // OS_WIN | 10 #endif // OS_WIN |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #include "grit/locale_settings.h" | 88 #include "grit/locale_settings.h" |
89 #include "net/base/cookie_monster.h" | 89 #include "net/base/cookie_monster.h" |
90 #include "net/base/net_util.h" | 90 #include "net/base/net_util.h" |
91 #include "net/base/registry_controlled_domain.h" | 91 #include "net/base/registry_controlled_domain.h" |
92 #include "net/base/static_cookie_policy.h" | 92 #include "net/base/static_cookie_policy.h" |
93 #include "net/url_request/url_request_context.h" | 93 #include "net/url_request/url_request_context.h" |
94 #include "webkit/glue/window_open_disposition.h" | 94 #include "webkit/glue/window_open_disposition.h" |
95 | 95 |
96 #if defined(OS_WIN) | 96 #if defined(OS_WIN) |
97 #include "app/win_util.h" | 97 #include "app/win_util.h" |
| 98 #include "chrome/browser/browser_child_process_host.h" |
98 #include "chrome/browser/cert_store.h" | 99 #include "chrome/browser/cert_store.h" |
99 #include "chrome/browser/child_process_host.h" | |
100 #include "chrome/browser/download/save_package.h" | 100 #include "chrome/browser/download/save_package.h" |
101 #include "chrome/browser/ssl/ssl_error_info.h" | 101 #include "chrome/browser/ssl/ssl_error_info.h" |
102 #include "chrome/browser/shell_integration.h" | 102 #include "chrome/browser/shell_integration.h" |
103 #include "chrome/browser/task_manager.h" | 103 #include "chrome/browser/task_manager.h" |
104 #include "chrome/browser/view_ids.h" | 104 #include "chrome/browser/view_ids.h" |
105 #include "chrome/browser/views/app_launcher.h" | 105 #include "chrome/browser/views/app_launcher.h" |
106 #include "chrome/browser/views/location_bar/location_bar_view.h" | 106 #include "chrome/browser/views/location_bar/location_bar_view.h" |
107 #endif // OS_WIN | 107 #endif // OS_WIN |
108 | 108 |
109 #if defined(OS_MACOSX) | 109 #if defined(OS_MACOSX) |
(...skipping 3862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3972 } | 3972 } |
3973 | 3973 |
3974 bool Browser::IsPinned(TabContents* source) { | 3974 bool Browser::IsPinned(TabContents* source) { |
3975 int index = tabstrip_model_.GetIndexOfTabContents(source); | 3975 int index = tabstrip_model_.GetIndexOfTabContents(source); |
3976 if (index == TabStripModel::kNoTab) { | 3976 if (index == TabStripModel::kNoTab) { |
3977 NOTREACHED() << "IsPinned called for tab not in our strip"; | 3977 NOTREACHED() << "IsPinned called for tab not in our strip"; |
3978 return false; | 3978 return false; |
3979 } | 3979 } |
3980 return tabstrip_model_.IsTabPinned(index); | 3980 return tabstrip_model_.IsTabPinned(index); |
3981 } | 3981 } |
OLD | NEW |