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

Side by Side Diff: extensions/browser/api/serial/serial_event_dispatcher.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 int connection_id; 58 int connection_id;
59 }; 59 };
60 60
61 static void StartReceive(const ReceiveParams& params); 61 static void StartReceive(const ReceiveParams& params);
62 62
63 static void ReceiveCallback(const ReceiveParams& params, 63 static void ReceiveCallback(const ReceiveParams& params,
64 const std::vector<char>& data, 64 const std::vector<char>& data,
65 serial::ReceiveError error); 65 serial::ReceiveError error);
66 66
67 static void PostEvent(const ReceiveParams& params, 67 static void PostEvent(const ReceiveParams& params,
68 scoped_ptr<extensions::Event> event); 68 std::unique_ptr<extensions::Event> event);
69 69
70 static void DispatchEvent(void* browser_context_id, 70 static void DispatchEvent(void* browser_context_id,
71 const std::string& extension_id, 71 const std::string& extension_id,
72 scoped_ptr<extensions::Event> event); 72 std::unique_ptr<extensions::Event> event);
73 73
74 content::BrowserThread::ID thread_id_; 74 content::BrowserThread::ID thread_id_;
75 content::BrowserContext* const context_; 75 content::BrowserContext* const context_;
76 scoped_refptr<ConnectionData> connections_; 76 scoped_refptr<ConnectionData> connections_;
77 }; 77 };
78 78
79 } // namespace api 79 } // namespace api
80 80
81 } // namespace extensions 81 } // namespace extensions
82 82
83 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 83 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/serial/serial_connection.cc ('k') | extensions/browser/api/serial/serial_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698