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

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

Issue 345037: Fifth patch in getting rid of caching MessageLoop pointers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H__ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H__
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H__ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 14
15 #if defined(OS_LINUX) 15 #if defined(OS_LINUX)
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #endif 17 #endif
18 18
19 class FilePath; 19 class FilePath;
20 class MessageLoop;
21 20
22 class ShellIntegration { 21 class ShellIntegration {
23 public: 22 public:
24 // Sets Chrome as default browser (only for current user). Returns false if 23 // Sets Chrome as default browser (only for current user). Returns false if
25 // this operation fails. 24 // this operation fails.
26 static bool SetAsDefaultBrowser(); 25 static bool SetAsDefaultBrowser();
27 26
28 // On Linux, it may not be possible to determine or set the default browser 27 // On Linux, it may not be possible to determine or set the default browser
29 // on some desktop environments or configurations. So, we use this enum and 28 // on some desktop environments or configurations. So, we use this enum and
30 // not a plain bool. (Note however that if used like a bool, this enum will 29 // not a plain bool. (Note however that if used like a bool, this enum will
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // UI thread. 118 // UI thread.
120 void ExecuteSetAsDefaultBrowser(); 119 void ExecuteSetAsDefaultBrowser();
121 void CompleteSetAsDefaultBrowser(); 120 void CompleteSetAsDefaultBrowser();
122 121
123 // Updates the UI in our associated view with the current default browser 122 // Updates the UI in our associated view with the current default browser
124 // state. 123 // state.
125 void UpdateUI(DefaultBrowserState state); 124 void UpdateUI(DefaultBrowserState state);
126 125
127 DefaultBrowserObserver* observer_; 126 DefaultBrowserObserver* observer_;
128 127
129 MessageLoop* ui_loop_;
130 MessageLoop* file_loop_;
131
132 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); 128 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker);
133 }; 129 };
134 }; 130 };
135 131
136 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H__ 132 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698