| OLD | NEW |
| 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 // Library functions related to the Financial Server ping. | 5 // Library functions related to the Financial Server ping. |
| 6 | 6 |
| 7 #include "rlz/lib/financial_ping.h" | 7 #include "rlz/lib/financial_ping.h" |
| 8 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return true; | 193 return true; |
| 194 } | 194 } |
| 195 | 195 |
| 196 namespace { | 196 namespace { |
| 197 | 197 |
| 198 class FinancialPingUrlFetcherDelegate : public net::URLFetcherDelegate { | 198 class FinancialPingUrlFetcherDelegate : public net::URLFetcherDelegate { |
| 199 public: | 199 public: |
| 200 FinancialPingUrlFetcherDelegate(const base::Closure& callback) | 200 FinancialPingUrlFetcherDelegate(const base::Closure& callback) |
| 201 : callback_(callback) { | 201 : callback_(callback) { |
| 202 } | 202 } |
| 203 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 203 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 204 | 204 |
| 205 private: | 205 private: |
| 206 base::Closure callback_; | 206 base::Closure callback_; |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 void FinancialPingUrlFetcherDelegate::OnURLFetchComplete( | 209 void FinancialPingUrlFetcherDelegate::OnURLFetchComplete( |
| 210 const net::URLFetcher* source) { | 210 const net::URLFetcher* source) { |
| 211 callback_.Run(); | 211 callback_.Run(); |
| 212 } | 212 } |
| 213 | 213 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 404 } |
| 405 | 405 |
| 406 bool WasSendFinancialPingInterrupted() { | 406 bool WasSendFinancialPingInterrupted() { |
| 407 return send_financial_ping_interrupted_for_test; | 407 return send_financial_ping_interrupted_for_test; |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace test | 410 } // namespace test |
| 411 #endif | 411 #endif |
| 412 | 412 |
| 413 } // namespace rlz_lib | 413 } // namespace rlz_lib |
| OLD | NEW |