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

Side by Side Diff: chrome/browser/browser_process.h

Issue 174162: Don't show "Inspect Element" in the context menu if we can't inspect. (Closed)
Patch Set: ... Created 11 years, 4 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This interfaces is for managing the global services of the application. Each 5 // This interfaces is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 DownloadRequestManager* download_request_manager(); 131 DownloadRequestManager* download_request_manager();
132 132
133 // Returns an event that is signaled when the browser shutdown. 133 // Returns an event that is signaled when the browser shutdown.
134 virtual base::WaitableEvent* shutdown_event() = 0; 134 virtual base::WaitableEvent* shutdown_event() = 0;
135 135
136 // Returns a reference to the user-data-dir based profiles vector. 136 // Returns a reference to the user-data-dir based profiles vector.
137 std::vector<std::wstring>& user_data_dir_profiles() { 137 std::vector<std::wstring>& user_data_dir_profiles() {
138 return user_data_dir_profiles_; 138 return user_data_dir_profiles_;
139 } 139 }
140 140
141 // Trigger an asynchronous check to see if we have the inspector's files on
142 // disk.
143 virtual void CheckForInspectorFiles() = 0;
144
145 // Return true iff we found the inspector files on disk. It's possible to
146 // call this function before we have a definite answer from the disk. In that
147 // case, we default to returning true.
148 virtual bool have_inspector_files() const = 0;
149
141 private: 150 private:
142 // User-data-dir based profiles. 151 // User-data-dir based profiles.
143 std::vector<std::wstring> user_data_dir_profiles_; 152 std::vector<std::wstring> user_data_dir_profiles_;
144 153
145 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 154 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
146 }; 155 };
147 156
148 extern BrowserProcess* g_browser_process; 157 extern BrowserProcess* g_browser_process;
149 158
150 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 159 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698