| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ |
| 6 #define EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ | 6 #define EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "extensions/common/api/display_source.h" | 10 #include "extensions/common/api/display_source.h" |
| 10 #include "extensions/renderer/api/display_source/display_source_session.h" | 11 #include "extensions/renderer/api/display_source/display_source_session.h" |
| 11 #include "extensions/renderer/object_backed_native_handler.h" | 12 #include "extensions/renderer/object_backed_native_handler.h" |
| 12 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 class ScriptContext; | 16 class ScriptContext; |
| 16 | 17 |
| 17 // Implements custom bindings for the displaySource API. | 18 // Implements custom bindings for the displaySource API. |
| 18 class DisplaySourceCustomBindings : public ObjectBackedNativeHandler { | 19 class DisplaySourceCustomBindings : public ObjectBackedNativeHandler { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 54 |
| 54 std::map<int, scoped_ptr<DisplaySourceSession>> session_map_; | 55 std::map<int, scoped_ptr<DisplaySourceSession>> session_map_; |
| 55 base::WeakPtrFactory<DisplaySourceCustomBindings> weak_factory_; | 56 base::WeakPtrFactory<DisplaySourceCustomBindings> weak_factory_; |
| 56 | 57 |
| 57 DISALLOW_COPY_AND_ASSIGN(DisplaySourceCustomBindings); | 58 DISALLOW_COPY_AND_ASSIGN(DisplaySourceCustomBindings); |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // extensions | 61 } // extensions |
| 61 | 62 |
| 62 #endif // EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ | 63 #endif // EXTENSIONS_RENDERER_DISPLAY_SOURCE_CUSTOM_BINDINGS_H_ |
| OLD | NEW |