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

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

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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 | 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/extension_dispatcher.h" 5 #include "chrome/renderer/extensions/extension_dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
11 #include "chrome/common/child_process_logging.h" 11 #include "chrome/common/child_process_logging.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/chrome_version_info.h" 13 #include "chrome/common/chrome_version_info.h"
14 #include "chrome/common/chrome_view_type.h"
15 #include "chrome/common/extensions/api/extension_api.h" 14 #include "chrome/common/extensions/api/extension_api.h"
16 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
17 #include "chrome/common/extensions/extension_messages.h" 16 #include "chrome/common/extensions/extension_messages.h"
18 #include "chrome/common/extensions/extension_permission_set.h" 17 #include "chrome/common/extensions/extension_permission_set.h"
19 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "chrome/common/view_type.h"
20 #include "chrome/renderer/chrome_render_process_observer.h" 20 #include "chrome/renderer/chrome_render_process_observer.h"
21 #include "chrome/renderer/extensions/api_definitions_natives.h" 21 #include "chrome/renderer/extensions/api_definitions_natives.h"
22 #include "chrome/renderer/extensions/app_bindings.h" 22 #include "chrome/renderer/extensions/app_bindings.h"
23 #include "chrome/renderer/extensions/chrome_v8_context.h" 23 #include "chrome/renderer/extensions/chrome_v8_context.h"
24 #include "chrome/renderer/extensions/chrome_v8_extension.h" 24 #include "chrome/renderer/extensions/chrome_v8_extension.h"
25 #include "chrome/renderer/extensions/context_menus_custom_bindings.h" 25 #include "chrome/renderer/extensions/context_menus_custom_bindings.h"
26 #include "chrome/renderer/extensions/event_bindings.h" 26 #include "chrome/renderer/extensions/event_bindings.h"
27 #include "chrome/renderer/extensions/experimental.usb_custom_bindings.h" 27 #include "chrome/renderer/extensions/experimental.usb_custom_bindings.h"
28 #include "chrome/renderer/extensions/extension_custom_bindings.h" 28 #include "chrome/renderer/extensions/extension_custom_bindings.h"
29 #include "chrome/renderer/extensions/extension_groups.h" 29 #include "chrome/renderer/extensions/extension_groups.h"
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 static const char kMessage[] = 924 static const char kMessage[] =
925 "%s can only be used in an extension process."; 925 "%s can only be used in an extension process.";
926 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); 926 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str());
927 v8::ThrowException( 927 v8::ThrowException(
928 v8::Exception::Error(v8::String::New(error_msg.c_str()))); 928 v8::Exception::Error(v8::String::New(error_msg.c_str())));
929 return false; 929 return false;
930 } 930 }
931 931
932 return true; 932 return true;
933 } 933 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698