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

Unified Diff: chrome/browser/google_apis/request_registry.cc

Issue 17175017: Get rid of RequestRegistry (part 6): get rid of RequestRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google_apis/request_registry.h ('k') | chrome/browser/google_apis/request_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/request_registry.cc
diff --git a/chrome/browser/google_apis/request_registry.cc b/chrome/browser/google_apis/request_registry.cc
deleted file mode 100644
index cc9fb03cc6b8d819773c8b839aec60e4d151e0af..0000000000000000000000000000000000000000
--- a/chrome/browser/google_apis/request_registry.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/google_apis/request_registry.h"
-
-namespace google_apis {
-
-RequestRegistry::Request::Request(RequestRegistry* registry)
- : registry_(registry), id_(-1) {
-}
-
-RequestRegistry::Request::~Request() {
-}
-
-void RequestRegistry::Request::NotifyStart() {
- registry_->OnRequestStart(this, &id_);
-}
-
-void RequestRegistry::Request::NotifyFinish() {
- registry_->OnRequestFinish(id_);
-}
-
-RequestRegistry::RequestRegistry() {
- in_flight_requests_.set_check_on_null_data(true);
-}
-
-RequestRegistry::~RequestRegistry() {
-}
-
-void RequestRegistry::OnRequestStart(
- RequestRegistry::Request* request,
- RequestID* id) {
- *id = in_flight_requests_.Add(request);
-}
-
-void RequestRegistry::OnRequestFinish(RequestID id) {
- if (in_flight_requests_.Lookup(id))
- in_flight_requests_.Remove(id);
-}
-
-} // namespace google_apis
« no previous file with comments | « chrome/browser/google_apis/request_registry.h ('k') | chrome/browser/google_apis/request_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698