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

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

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/renderer/extensions/chrome_v8_context_set.h" 5 #include "chrome/renderer/extensions/chrome_v8_context_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/tracked_objects.h" 9 #include "base/tracked_objects.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/renderer/extensions/chrome_v8_context.h" 12 #include "chrome/renderer/extensions/chrome_v8_context.h"
13 #include "content/public/renderer/render_thread.h" 13 #include "content/public/renderer/render_thread.h"
14 #include "content/public/renderer/v8_value_converter.h" 14 #include "content/public/renderer/v8_value_converter.h"
15 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
16 #include "v8/include/v8.h" 16 #include "v8/include/v8.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
22 22
23 using content::RenderThread; 23 using content::RenderThread;
24 using content::V8ValueConverter; 24 using content::V8ValueConverter;
25 25
26 namespace { 26 namespace {
27 27
28 // Returns true if the extension running in the given |render_view| has 28 // Returns true if the extension running in the given |render_view| has
29 // sufficient permissions to access the data. 29 // sufficient permissions to access the data.
30 // 30 //
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // TODO(rafaelw): Consider only doing this check if function_name == 146 // TODO(rafaelw): Consider only doing this check if function_name ==
147 // "Event.dispatchJSON". 147 // "Event.dispatchJSON".
148 #ifndef NDEBUG 148 #ifndef NDEBUG
149 if (!retval.IsEmpty() && !retval->IsUndefined()) { 149 if (!retval.IsEmpty() && !retval->IsUndefined()) {
150 std::string error = *v8::String::AsciiValue(retval); 150 std::string error = *v8::String::AsciiValue(retval);
151 DCHECK(false) << error; 151 DCHECK(false) << error;
152 } 152 }
153 #endif 153 #endif
154 } 154 }
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698