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

Side by Side Diff: chrome/browser/extensions/extension_web_ui.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/extension_web_ui.h" 5 #include "chrome/browser/extensions/extension_web_ui.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 17 matching lines...) Expand all
28 #include "content/public/browser/web_contents.h" 28 #include "content/public/browser/web_contents.h"
29 #include "content/public/browser/web_ui.h" 29 #include "content/public/browser/web_ui.h"
30 #include "content/public/common/page_transition_types.h" 30 #include "content/public/common/page_transition_types.h"
31 #include "content/public/common/bindings_policy.h" 31 #include "content/public/common/bindings_policy.h"
32 #include "net/base/file_stream.h" 32 #include "net/base/file_stream.h"
33 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
34 #include "ui/gfx/codec/png_codec.h" 34 #include "ui/gfx/codec/png_codec.h"
35 #include "ui/gfx/favicon_size.h" 35 #include "ui/gfx/favicon_size.h"
36 36
37 using content::WebContents; 37 using content::WebContents;
38 using extensions::Extension;
38 39
39 namespace { 40 namespace {
40 41
41 // De-dupes the items in |list|. Assumes the values are strings. 42 // De-dupes the items in |list|. Assumes the values are strings.
42 void CleanUpDuplicates(ListValue* list) { 43 void CleanUpDuplicates(ListValue* list) {
43 std::set<std::string> seen_values; 44 std::set<std::string> seen_values;
44 45
45 // Loop backwards as we may be removing items. 46 // Loop backwards as we may be removing items.
46 for (size_t i = list->GetSize() - 1; (i + 1) > 0; --i) { 47 for (size_t i = list->GetSize() - 1; (i + 1) > 0; --i) {
47 std::string value; 48 std::string value;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 416 }
416 417
417 // static 418 // static
418 void ExtensionWebUI::GetFaviconForURL(Profile* profile, 419 void ExtensionWebUI::GetFaviconForURL(Profile* profile,
419 FaviconService::GetFaviconRequest* request, const GURL& page_url) { 420 FaviconService::GetFaviconRequest* request, const GURL& page_url) {
420 // tracker deletes itself when done. 421 // tracker deletes itself when done.
421 ExtensionWebUIImageLoadingTracker* tracker = 422 ExtensionWebUIImageLoadingTracker* tracker =
422 new ExtensionWebUIImageLoadingTracker(profile, request, page_url); 423 new ExtensionWebUIImageLoadingTracker(profile, request, page_url);
423 tracker->Init(); 424 tracker->Init();
424 } 425 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.h ('k') | chrome/browser/extensions/extension_webkit_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698