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

Side by Side Diff: chrome/browser/sync/test/test_http_bridge_factory.h

Issue 666733003: Standardize usage of virtual/override/final in chrome/browser/sync/ (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_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 6 #define CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "sync/internal_api/public/http_post_provider_factory.h" 9 #include "sync/internal_api/public/http_post_provider_factory.h"
10 #include "sync/internal_api/public/http_post_provider_interface.h" 10 #include "sync/internal_api/public/http_post_provider_interface.h"
11 11
12 namespace browser_sync { 12 namespace browser_sync {
13 13
14 class TestHttpBridge : public syncer::HttpPostProviderInterface { 14 class TestHttpBridge : public syncer::HttpPostProviderInterface {
15 public: 15 public:
16 // Begin syncer::HttpPostProviderInterface implementation: 16 // Begin syncer::HttpPostProviderInterface implementation:
17 virtual void SetExtraRequestHeaders(const char * headers) override {} 17 void SetExtraRequestHeaders(const char* headers) override {}
18 18
19 virtual void SetURL(const char* url, int port) override {} 19 void SetURL(const char* url, int port) override {}
20 20
21 virtual void SetPostPayload(const char* content_type, 21 void SetPostPayload(const char* content_type,
22 int content_length, 22 int content_length,
23 const char* content) override {} 23 const char* content) override {}
24 24
25 virtual bool MakeSynchronousPost(int* error_code, 25 bool MakeSynchronousPost(int* error_code, int* response_code) override;
26 int* response_code) override;
27 26
28 virtual int GetResponseContentLength() const override; 27 int GetResponseContentLength() const override;
29 28
30 virtual const char* GetResponseContent() const override; 29 const char* GetResponseContent() const override;
31 30
32 virtual const std::string GetResponseHeaderValue( 31 const std::string GetResponseHeaderValue(const std::string&) const override;
33 const std::string&) const override;
34 32
35 virtual void Abort() override; 33 void Abort() override;
36 // End syncer::HttpPostProviderInterface implementation. 34 // End syncer::HttpPostProviderInterface implementation.
37 }; 35 };
38 36
39 class TestHttpBridgeFactory : public syncer::HttpPostProviderFactory { 37 class TestHttpBridgeFactory : public syncer::HttpPostProviderFactory {
40 public: 38 public:
41 TestHttpBridgeFactory(); 39 TestHttpBridgeFactory();
42 virtual ~TestHttpBridgeFactory(); 40 ~TestHttpBridgeFactory() override;
43 41
44 // syncer::HttpPostProviderFactory: 42 // syncer::HttpPostProviderFactory:
45 virtual void Init(const std::string& user_agent) override; 43 void Init(const std::string& user_agent) override;
46 virtual syncer::HttpPostProviderInterface* Create() override; 44 syncer::HttpPostProviderInterface* Create() override;
47 virtual void Destroy(syncer::HttpPostProviderInterface* http) override; 45 void Destroy(syncer::HttpPostProviderInterface* http) override;
48 }; 46 };
49 47
50 } // namespace browser_sync 48 } // namespace browser_sync
51 49
52 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_ 50 #endif // CHROME_BROWSER_SYNC_TEST_TEST_HTTP_BRIDGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698