| OLD | NEW |
| 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/event_bindings.h" | 5 #include "chrome/renderer/extensions/event_bindings.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "extensions/common/view_type.h" | 33 #include "extensions/common/view_type.h" |
| 34 #include "grit/renderer_resources.h" | 34 #include "grit/renderer_resources.h" |
| 35 #include "third_party/WebKit/public/platform/WebURL.h" | 35 #include "third_party/WebKit/public/platform/WebURL.h" |
| 36 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 36 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 37 #include "third_party/WebKit/public/web/WebDocument.h" | 37 #include "third_party/WebKit/public/web/WebDocument.h" |
| 38 #include "third_party/WebKit/public/web/WebFrame.h" | 38 #include "third_party/WebKit/public/web/WebFrame.h" |
| 39 #include "third_party/WebKit/public/web/WebView.h" | 39 #include "third_party/WebKit/public/web/WebView.h" |
| 40 #include "url/gurl.h" | 40 #include "url/gurl.h" |
| 41 #include "v8/include/v8.h" | 41 #include "v8/include/v8.h" |
| 42 | 42 |
| 43 using WebKit::WebFrame; | 43 using blink::WebFrame; |
| 44 using WebKit::WebURL; | 44 using blink::WebURL; |
| 45 using content::RenderThread; | 45 using content::RenderThread; |
| 46 | 46 |
| 47 namespace extensions { | 47 namespace extensions { |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| 51 // A map of event names to the number of contexts listening to that event. | 51 // A map of event names to the number of contexts listening to that event. |
| 52 // We notify the browser about event listeners when we transition between 0 | 52 // We notify the browser about event listeners when we transition between 0 |
| 53 // and 1. | 53 // and 1. |
| 54 typedef std::map<std::string, int> EventListenerCounts; | 54 typedef std::map<std::string, int> EventListenerCounts; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 } // namespace | 324 } // namespace |
| 325 | 325 |
| 326 // static | 326 // static |
| 327 ChromeV8Extension* EventBindings::Create(Dispatcher* dispatcher, | 327 ChromeV8Extension* EventBindings::Create(Dispatcher* dispatcher, |
| 328 ChromeV8Context* context) { | 328 ChromeV8Context* context) { |
| 329 return new ExtensionImpl(dispatcher, context); | 329 return new ExtensionImpl(dispatcher, context); |
| 330 } | 330 } |
| 331 | 331 |
| 332 } // namespace extensions | 332 } // namespace extensions |
| OLD | NEW |