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

Side by Side Diff: chrome/browser/jumplist_win.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
« no previous file with comments | « chrome/browser/jankometer.cc ('k') | chrome/browser/memory_details.cc » ('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) 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/jumplist_win.h" 5 #include "chrome/browser/jumplist_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shobjidl.h> 8 #include <shobjidl.h>
9 #include <propkey.h> 9 #include <propkey.h>
10 #include <propvarutil.h> 10 #include <propvarutil.h>
(...skipping 27 matching lines...) Expand all
38 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
39 #include "content/public/browser/notification_source.h" 39 #include "content/public/browser/notification_source.h"
40 #include "googleurl/src/gurl.h" 40 #include "googleurl/src/gurl.h"
41 #include "grit/chromium_strings.h" 41 #include "grit/chromium_strings.h"
42 #include "grit/generated_resources.h" 42 #include "grit/generated_resources.h"
43 #include "third_party/skia/include/core/SkBitmap.h" 43 #include "third_party/skia/include/core/SkBitmap.h"
44 #include "ui/base/l10n/l10n_util.h" 44 #include "ui/base/l10n/l10n_util.h"
45 #include "ui/gfx/codec/png_codec.h" 45 #include "ui/gfx/codec/png_codec.h"
46 #include "ui/gfx/icon_util.h" 46 #include "ui/gfx/icon_util.h"
47 47
48 using content::BrowserThread;
48 49
49 namespace { 50 namespace {
50 51
51 // COM interfaces used in this file. 52 // COM interfaces used in this file.
52 // These interface declarations are copied from Windows SDK 7.0. 53 // These interface declarations are copied from Windows SDK 7.0.
53 // TODO(hbono): Bug 16903: delete them when we use Windows SDK 7.0. 54 // TODO(hbono): Bug 16903: delete them when we use Windows SDK 7.0.
54 #ifndef __IObjectArray_INTERFACE_DEFINED__ 55 #ifndef __IObjectArray_INTERFACE_DEFINED__
55 #define __IObjectArray_INTERFACE_DEFINED__ 56 #define __IObjectArray_INTERFACE_DEFINED__
56 57
57 MIDL_INTERFACE("92CA9DCD-5622-4bba-A805-5E9F541BD8C9") 58 MIDL_INTERFACE("92CA9DCD-5622-4bba-A805-5E9F541BD8C9")
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 if ((*item)->data().get() && 796 if ((*item)->data().get() &&
796 gfx::PNGCodec::Decode((*item)->data()->front(), 797 gfx::PNGCodec::Decode((*item)->data()->front(),
797 (*item)->data()->size(), 798 (*item)->data()->size(),
798 &icon_bitmap)) { 799 &icon_bitmap)) {
799 FilePath icon_path; 800 FilePath icon_path;
800 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path)) 801 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path))
801 (*item)->SetIcon(icon_path.value(), 0, true); 802 (*item)->SetIcon(icon_path.value(), 0, true);
802 } 803 }
803 } 804 }
804 } 805 }
OLDNEW
« no previous file with comments | « chrome/browser/jankometer.cc ('k') | chrome/browser/memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698