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

Side by Side Diff: chrome/browser/safe_browsing/local_two_phase_testserver.h

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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 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_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "net/test/spawned_test_server/local_test_server.h" 11 #include "net/test/spawned_test_server/local_test_server.h"
12 12
13 namespace safe_browsing {
14
13 // Runs a Python-based two phase upload test server on the same machine in which 15 // Runs a Python-based two phase upload test server on the same machine in which
14 // the LocalTwoPhaseTestServer runs. 16 // the LocalTwoPhaseTestServer runs.
15 class LocalTwoPhaseTestServer : public net::LocalTestServer { 17 class LocalTwoPhaseTestServer : public net::LocalTestServer {
16 public: 18 public:
17 // Initialize a two phase protocol test server. 19 // Initialize a two phase protocol test server.
18 LocalTwoPhaseTestServer(); 20 LocalTwoPhaseTestServer();
19 21
20 ~LocalTwoPhaseTestServer() override; 22 ~LocalTwoPhaseTestServer() override;
21 23
22 // Returns the path to two_phase_testserver.py. 24 // Returns the path to two_phase_testserver.py.
23 bool GetTestServerPath(base::FilePath* testserver_path) const override; 25 bool GetTestServerPath(base::FilePath* testserver_path) const override;
24 26
25 private: 27 private:
26 DISALLOW_COPY_AND_ASSIGN(LocalTwoPhaseTestServer); 28 DISALLOW_COPY_AND_ASSIGN(LocalTwoPhaseTestServer);
27 }; 29 };
28 30
31 } // namespace safe_browsing
32
29 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ 33 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_
30 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698