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

Side by Side Diff: chrome/renderer/extensions/set_icon_natives.cc

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system Created 6 years, 8 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 | Annotate | Revision Log
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/renderer/extensions/set_icon_natives.h" 5 #include "chrome/renderer/extensions/set_icon_natives.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "chrome/renderer/extensions/request_sender.h" 11 #include "extensions/renderer/request_sender.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
14 14
15 namespace { 15 namespace {
16 16
17 const char* kImageSizeKeys[] = { "19", "38" }; 17 const char* kImageSizeKeys[] = { "19", "38" };
18 const char kInvalidDimensions[] = "ImageData has invalid dimensions."; 18 const char kInvalidDimensions[] = "ImageData has invalid dimensions.";
19 const char kInvalidData[] = "ImageData data length does not match dimensions."; 19 const char kInvalidData[] = "ImageData data length does not match dimensions.";
20 const char kNoMemory[] = "Chrome was unable to initialize icon."; 20 const char kNoMemory[] = "Chrome was unable to initialize icon.";
21 21
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 request_sender_->StartRequest(context(), 156 request_sender_->StartRequest(context(),
157 name, 157 name,
158 request_id, 158 request_id,
159 has_callback, 159 has_callback,
160 for_io_thread, 160 for_io_thread,
161 &list_value); 161 &list_value);
162 } 162 }
163 163
164 } // namespace extensions 164 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/send_request_natives.cc ('k') | chrome/renderer/extensions/user_script_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698