| OLD | NEW |
| 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/extension_dispatcher.h" | 5 #include "chrome/renderer/extensions/extension_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/common/child_process_logging.h" | 8 #include "chrome/common/child_process_logging.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/renderer/extensions/file_browser_private_bindings.h" | 21 #include "chrome/renderer/extensions/file_browser_private_bindings.h" |
| 22 #include "chrome/renderer/extensions/miscellaneous_bindings.h" | 22 #include "chrome/renderer/extensions/miscellaneous_bindings.h" |
| 23 #include "chrome/renderer/extensions/schema_generated_bindings.h" | 23 #include "chrome/renderer/extensions/schema_generated_bindings.h" |
| 24 #include "chrome/renderer/extensions/user_script_slave.h" | 24 #include "chrome/renderer/extensions/user_script_slave.h" |
| 25 #include "content/public/renderer/render_thread.h" | 25 #include "content/public/renderer/render_thread.h" |
| 26 #include "grit/renderer_resources.h" | 26 #include "grit/renderer_resources.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 34 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
| 35 #include "v8/include/v8.h" | 35 #include "v8/include/v8.h" |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| 38 static const int64 kInitialExtensionIdleHandlerDelayMs = 5*1000; | 38 static const int64 kInitialExtensionIdleHandlerDelayMs = 5*1000; |
| 39 static const int64 kMaxExtensionIdleHandlerDelayMs = 5*60*1000; | 39 static const int64 kMaxExtensionIdleHandlerDelayMs = 5*60*1000; |
| 40 } | 40 } |
| 41 | 41 |
| 42 using extensions::MiscellaneousBindings; | 42 using extensions::MiscellaneousBindings; |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 RenderThread::Get()->RegisterExtension(extension); | 450 RenderThread::Get()->RegisterExtension(extension); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void ExtensionDispatcher::OnUsingWebRequestAPI( | 453 void ExtensionDispatcher::OnUsingWebRequestAPI( |
| 454 bool adblock, bool adblock_plus, bool other) { | 454 bool adblock, bool adblock_plus, bool other) { |
| 455 webrequest_adblock_ = adblock; | 455 webrequest_adblock_ = adblock; |
| 456 webrequest_adblock_plus_ = adblock_plus; | 456 webrequest_adblock_plus_ = adblock_plus; |
| 457 webrequest_other_ = other; | 457 webrequest_other_ = other; |
| 458 } | 458 } |
| OLD | NEW |