OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/safe_browsing/safe_browsing_api_handler.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_api_handler.h" |
6 | 6 |
| 7 namespace safe_browsing { |
| 8 |
7 SafeBrowsingApiHandler* SafeBrowsingApiHandler::instance_ = NULL; | 9 SafeBrowsingApiHandler* SafeBrowsingApiHandler::instance_ = NULL; |
8 | 10 |
9 // static | 11 // static |
10 void SafeBrowsingApiHandler::SetInstance(SafeBrowsingApiHandler* instance) { | 12 void SafeBrowsingApiHandler::SetInstance(SafeBrowsingApiHandler* instance) { |
11 instance_ = instance; | 13 instance_ = instance; |
12 } | 14 } |
13 | 15 |
14 // static | 16 // static |
15 SafeBrowsingApiHandler* SafeBrowsingApiHandler::GetInstance() { | 17 SafeBrowsingApiHandler* SafeBrowsingApiHandler::GetInstance() { |
16 return instance_; | 18 return instance_; |
17 } | 19 } |
| 20 |
| 21 } // namespace safe_browsing |
OLD | NEW |