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

Side by Side Diff: extensions/renderer/display_source_custom_bindings.h

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> Created 4 years, 8 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « extensions/renderer/api/display_source/display_source_session.h ('k') | tools/android/forwarder2/daemon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698