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

Side by Side Diff: chrome/browser/cancelable_request.h

Issue 2969006: Revert 52336 - More header cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/chrome_thread_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // CancelableRequestProviders and Consumers work together to make requests that 5 // CancelableRequestProviders and Consumers work together to make requests that
6 // execute on a background thread in the provider and return data to the 6 // execute on a background thread in the provider and return data to the
7 // consumer. These class collaborate to keep a list of open requests and to 7 // consumer. These class collaborate to keep a list of open requests and to
8 // make sure that requests to not outlive either of the objects involved in the 8 // make sure that requests to not outlive either of the objects involved in the
9 // transaction. 9 // transaction.
10 // 10 //
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include <map> 89 #include <map>
90 #include <vector> 90 #include <vector>
91 91
92 #include "base/basictypes.h" 92 #include "base/basictypes.h"
93 #include "base/callback.h" 93 #include "base/callback.h"
94 #include "base/cancellation_flag.h" 94 #include "base/cancellation_flag.h"
95 #include "base/lock.h" 95 #include "base/lock.h"
96 #include "base/logging.h" 96 #include "base/logging.h"
97 #include "base/message_loop.h" 97 #include "base/message_loop.h"
98 #include "base/ref_counted.h" 98 #include "base/ref_counted.h"
99 #include "base/scoped_ptr.h"
100 #include "base/task.h" 99 #include "base/task.h"
101 100
102 class CancelableRequestBase; 101 class CancelableRequestBase;
103 class CancelableRequestConsumerBase; 102 class CancelableRequestConsumerBase;
104 103
105 // CancelableRequestProvider -------------------------------------------------- 104 // CancelableRequestProvider --------------------------------------------------
106 // 105 //
107 // This class is threadsafe. Requests may be added or canceled from any thread, 106 // This class is threadsafe. Requests may be added or canceled from any thread,
108 // but a task must only be canceled from the same thread it was initially run 107 // but a task must only be canceled from the same thread it was initially run
109 // on. 108 // on.
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 } 557 }
559 558
560 // The value. 559 // The value.
561 Type value; 560 Type value;
562 561
563 protected: 562 protected:
564 virtual ~CancelableRequest1() {} 563 virtual ~CancelableRequest1() {}
565 }; 564 };
566 565
567 #endif // CHROME_BROWSER_CANCELABLE_REQUEST_H__ 566 #endif // CHROME_BROWSER_CANCELABLE_REQUEST_H__
OLDNEW
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/chrome_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698