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

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

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
7 7
8 #include "chrome/browser/extensions/api/api_resource_manager.h" 8 #include "chrome/browser/extensions/api/api_resource_manager.h"
9 #include "chrome/common/extensions/api/serial.h" 9 #include "chrome/common/extensions/api/serial.h"
10 10
11 class Profile;
12
11 namespace extensions { 13 namespace extensions {
12 14
13 struct Event; 15 struct Event;
14 class SerialConnection; 16 class SerialConnection;
15 17
16 namespace api { 18 namespace api {
17 19
18 // Per-profile dispatcher for events on serial connections. 20 // Per-profile dispatcher for events on serial connections.
19 class SerialEventDispatcher : public ProfileKeyedAPI { 21 class SerialEventDispatcher : public ProfileKeyedAPI {
20 public: 22 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 content::BrowserThread::ID thread_id_; 69 content::BrowserThread::ID thread_id_;
68 Profile* const profile_; 70 Profile* const profile_;
69 scoped_refptr<ConnectionData> connections_; 71 scoped_refptr<ConnectionData> connections_;
70 }; 72 };
71 73
72 } // namespace api 74 } // namespace api
73 75
74 } // namespace extensions 76 } // namespace extensions
75 77
76 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ 78 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/serial/serial_api.cc ('k') | chrome/browser/extensions/api/socket/socket_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698