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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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/app_window_custom_bindings.h" 5 #include "chrome/renderer/extensions/app_window_custom_bindings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/extensions/extension_messages.h"
12 #include "chrome/renderer/extensions/chrome_v8_context.h" 11 #include "chrome/renderer/extensions/chrome_v8_context.h"
13 #include "chrome/renderer/extensions/dispatcher.h" 12 #include "chrome/renderer/extensions/dispatcher.h"
14 #include "chrome/renderer/extensions/scoped_persistent.h" 13 #include "chrome/renderer/extensions/scoped_persistent.h"
15 #include "content/public/renderer/render_thread.h" 14 #include "content/public/renderer/render_thread.h"
16 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
17 #include "content/public/renderer/render_view_observer.h" 16 #include "content/public/renderer/render_view_observer.h"
18 #include "content/public/renderer/render_view_visitor.h" 17 #include "content/public/renderer/render_view_visitor.h"
19 #include "content/public/renderer/v8_value_converter.h" 18 #include "content/public/renderer/v8_value_converter.h"
19 #include "extensions/common/extension_messages.h"
20 #include "grit/renderer_resources.h" 20 #include "grit/renderer_resources.h"
21 #include "third_party/WebKit/public/web/WebFrame.h" 21 #include "third_party/WebKit/public/web/WebFrame.h"
22 #include "third_party/WebKit/public/web/WebView.h" 22 #include "third_party/WebKit/public/web/WebView.h"
23 #include "ui/base/resource/resource_bundle.h" 23 #include "ui/base/resource/resource_bundle.h"
24 #include "v8/include/v8.h" 24 #include "v8/include/v8.h"
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 class DidCreateDocumentElementObserver : public content::RenderViewObserver { 28 class DidCreateDocumentElementObserver : public content::RenderViewObserver {
29 public: 29 public:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ResourceBundle::GetSharedInstance().GetRawDataResource( 121 ResourceBundle::GetSharedInstance().GetRawDataResource(
122 IDR_WINDOW_CONTROLS_TEMPLATE_HTML).as_string()); 122 IDR_WINDOW_CONTROLS_TEMPLATE_HTML).as_string());
123 scoped_ptr<content::V8ValueConverter> converter( 123 scoped_ptr<content::V8ValueConverter> converter(
124 content::V8ValueConverter::create()); 124 content::V8ValueConverter::create());
125 result = converter->ToV8Value(value, context()->v8_context()); 125 result = converter->ToV8Value(value, context()->v8_context());
126 } 126 }
127 args.GetReturnValue().Set(result); 127 args.GetReturnValue().Set(result);
128 } 128 }
129 129
130 } // namespace extensions 130 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/content_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698