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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_service.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DIAL_DIAL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // associated with a single discovery cycle into its own |DiscoveryOperation| 98 // associated with a single discovery cycle into its own |DiscoveryOperation|
99 // object. This would also simplify lifetime of the object w.r.t. DialRegistry; 99 // object. This would also simplify lifetime of the object w.r.t. DialRegistry;
100 // the Registry would not need to create/destroy the Service on demand. 100 // the Registry would not need to create/destroy the Service on demand.
101 class DialServiceImpl : public DialService, 101 class DialServiceImpl : public DialService,
102 public base::SupportsWeakPtr<DialServiceImpl> { 102 public base::SupportsWeakPtr<DialServiceImpl> {
103 public: 103 public:
104 explicit DialServiceImpl(net::NetLog* net_log); 104 explicit DialServiceImpl(net::NetLog* net_log);
105 virtual ~DialServiceImpl(); 105 virtual ~DialServiceImpl();
106 106
107 // DialService implementation 107 // DialService implementation
108 virtual bool Discover() OVERRIDE; 108 virtual bool Discover() override;
109 virtual void AddObserver(Observer* observer) OVERRIDE; 109 virtual void AddObserver(Observer* observer) override;
110 virtual void RemoveObserver(Observer* observer) OVERRIDE; 110 virtual void RemoveObserver(Observer* observer) override;
111 virtual bool HasObserver(Observer* observer) OVERRIDE; 111 virtual bool HasObserver(Observer* observer) override;
112 112
113 private: 113 private:
114 // Represents a socket binding to a single network interface. 114 // Represents a socket binding to a single network interface.
115 class DialSocket { 115 class DialSocket {
116 public: 116 public:
117 // TODO(imcheng): Consider writing a DialSocket::Delegate interface that 117 // TODO(imcheng): Consider writing a DialSocket::Delegate interface that
118 // declares methods for these callbacks, and taking a ptr to the delegate 118 // declares methods for these callbacks, and taking a ptr to the delegate
119 // here. 119 // here.
120 DialSocket( 120 DialSocket(
121 const base::Closure& discovery_request_cb, 121 const base::Closure& discovery_request_cb,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDeviceDiscovered); 294 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDeviceDiscovered);
295 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryFinished); 295 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryFinished);
296 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryRequest); 296 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryRequest);
297 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestResponseParsing); 297 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestResponseParsing);
298 DISALLOW_COPY_AND_ASSIGN(DialServiceImpl); 298 DISALLOW_COPY_AND_ASSIGN(DialServiceImpl);
299 }; 299 };
300 300
301 } // namespace extensions 301 } // namespace extensions
302 302
303 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ 303 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_registry_unittest.cc ('k') | chrome/browser/extensions/api/downloads/downloads_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698