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

Side by Side Diff: chrome/browser/ui/web_applications/web_app_ui.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/web_applications/web_app_ui.h" 5 #include "chrome/browser/ui/web_applications/web_app_ui.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/win/windows_version.h" 11 #include "base/win/windows_version.h"
12 #include "chrome/browser/extensions/extension_tab_helper.h" 12 #include "chrome/browser/extensions/extension_tab_helper.h"
13 #include "chrome/browser/favicon/favicon_tab_helper.h" 13 #include "chrome/browser/favicon/favicon_tab_helper.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/browser/web_applications/web_app.h" 16 #include "chrome/browser/web_applications/web_app.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "content/browser/tab_contents/tab_contents.h" 18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_details.h" 20 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
23 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
24 24
25 #if defined(OS_POSIX) && !defined(OS_MACOSX) 25 #if defined(OS_POSIX) && !defined(OS_MACOSX)
26 #include "base/environment.h" 26 #include "base/environment.h"
27 #endif 27 #endif
28 28
29 using content::BrowserThread;
30
29 namespace { 31 namespace {
30 32
31 #if defined(OS_WIN) 33 #if defined(OS_WIN)
32 // UpdateShortcutWorker holds all context data needed for update shortcut. 34 // UpdateShortcutWorker holds all context data needed for update shortcut.
33 // It schedules a pre-update check to find all shortcuts that needs to be 35 // It schedules a pre-update check to find all shortcuts that needs to be
34 // updated. If there are such shortcuts, it schedules icon download and 36 // updated. If there are such shortcuts, it schedules icon download and
35 // update them when icons are downloaded. It observes TAB_CLOSING notification 37 // update them when icons are downloaded. It observes TAB_CLOSING notification
36 // and cancels all the work when the underlying tab is closing. 38 // and cancels all the work when the underlying tab is closing.
37 class UpdateShortcutWorker : public content::NotificationObserver { 39 class UpdateShortcutWorker : public content::NotificationObserver {
38 public: 40 public:
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 313
312 void UpdateShortcutForTabContents(TabContentsWrapper* tab_contents) { 314 void UpdateShortcutForTabContents(TabContentsWrapper* tab_contents) {
313 #if defined(OS_WIN) 315 #if defined(OS_WIN)
314 // UpdateShortcutWorker will delete itself when it's done. 316 // UpdateShortcutWorker will delete itself when it's done.
315 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); 317 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents);
316 worker->Run(); 318 worker->Run();
317 #endif // defined(OS_WIN) 319 #endif // defined(OS_WIN)
318 } 320 }
319 321
320 } // namespace web_app 322 } // namespace web_app
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_drag_win.cc ('k') | chrome/browser/ui/webui/bug_report_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698