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

Side by Side Diff: extensions/browser/api/hid/hid_connection_resource.h

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « extensions/browser/api/hid/hid_api.h ('k') | extensions/browser/api/hid/hid_device_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HID_HID_CONNECTION_RESOURCE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_
6 #define EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ 6 #define EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 15 matching lines...) Expand all
26 static const content::BrowserThread::ID kThreadId = 26 static const content::BrowserThread::ID kThreadId =
27 content::BrowserThread::UI; 27 content::BrowserThread::UI;
28 #else 28 #else
29 // TODO(reillyg): Migrate Linux/CrOS and Windows as well. 29 // TODO(reillyg): Migrate Linux/CrOS and Windows as well.
30 static const content::BrowserThread::ID kThreadId = 30 static const content::BrowserThread::ID kThreadId =
31 content::BrowserThread::FILE; 31 content::BrowserThread::FILE;
32 #endif 32 #endif
33 33
34 HidConnectionResource(const std::string& owner_extension_id, 34 HidConnectionResource(const std::string& owner_extension_id,
35 scoped_refptr<device::HidConnection> connection); 35 scoped_refptr<device::HidConnection> connection);
36 virtual ~HidConnectionResource(); 36 ~HidConnectionResource() override;
37 37
38 scoped_refptr<device::HidConnection> connection() const { 38 scoped_refptr<device::HidConnection> connection() const {
39 return connection_; 39 return connection_;
40 } 40 }
41 41
42 virtual bool IsPersistent() const override; 42 bool IsPersistent() const override;
43 43
44 static const char* service_name() { return "HidConnectionResourceManager"; } 44 static const char* service_name() { return "HidConnectionResourceManager"; }
45 45
46 private: 46 private:
47 scoped_refptr<device::HidConnection> connection_; 47 scoped_refptr<device::HidConnection> connection_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(HidConnectionResource); 49 DISALLOW_COPY_AND_ASSIGN(HidConnectionResource);
50 }; 50 };
51 51
52 } // namespace extensions 52 } // namespace extensions
53 53
54 #endif // EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_ 54 #endif // EXTENSIONS_BROWSER_API_HID_HID_CONNECTION_RESOURCE_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/hid/hid_api.h ('k') | extensions/browser/api/hid/hid_device_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698