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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 10542153: NetLogEventParameter to Callback refactoring 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "base/timer.h" 17 #include "base/timer.h"
18 #include "content/browser/download/download_net_log_parameters.h" 18 #include "content/browser/download/download_net_log_parameters.h"
19 #include "content/browser/download/download_request_handle.h" 19 #include "content/browser/download/download_request_handle.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "content/public/browser/download_id.h" 21 #include "content/public/browser/download_id.h"
22 #include "content/public/browser/download_item.h" 22 #include "content/public/browser/download_item.h"
23 #include "googleurl/src/gurl.h" 23 #include "googleurl/src/gurl.h"
24 #include "net/base/net_errors.h" 24 #include "net/base/net_errors.h"
25 #include "net/base/net_log.h" 25 #include "net/base/net_log.h"
26 26
27
28 // See download_item.h for usage. 27 // See download_item.h for usage.
29 class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem { 28 class CONTENT_EXPORT DownloadItemImpl : public content::DownloadItem {
30 public: 29 public:
31 // Delegate is defined in DownloadItemImpl (rather than DownloadItem) 30 // Delegate is defined in DownloadItemImpl (rather than DownloadItem)
32 // as it's relevant to the class implementation (class methods need to 31 // as it's relevant to the class implementation (class methods need to
33 // call into it) and doesn't have anything to do with its interface. 32 // call into it) and doesn't have anything to do with its interface.
34 // Despite this, the delegate methods take DownloadItems as arguments 33 // Despite this, the delegate methods take DownloadItems as arguments
35 // (rather than DownloadItemImpls) so that classes that inherit from it 34 // (rather than DownloadItemImpls) so that classes that inherit from it
36 // can be used with DownloadItem mocks rather than being tied to 35 // can be used with DownloadItem mocks rather than being tied to
37 // DownloadItemImpls. 36 // DownloadItemImpls.
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 429
431 // Net log to use for this download. 430 // Net log to use for this download.
432 const net::BoundNetLog bound_net_log_; 431 const net::BoundNetLog bound_net_log_;
433 432
434 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 433 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
435 434
436 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 435 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
437 }; 436 };
438 437
439 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 438 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698