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

Unified Diff: content/browser/download/base_file.h

Issue 9223019: Added net logging to BaseFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 years, 11 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
Index: content/browser/download/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index 702bdbc4ed8bc58a1c86927c8a01d136fccd5746..455622ee81cfa5a316ca869f8acf798e53b942b3 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -18,6 +18,7 @@
#include "googleurl/src/gurl.h"
#include "net/base/file_stream.h"
#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
namespace crypto {
class SecureHash;
@@ -36,7 +37,8 @@ class CONTENT_EXPORT BaseFile {
int64 received_bytes,
bool calculate_hash,
const std::string& hash_state,
- const linked_ptr<net::FileStream>& file_stream);
+ const linked_ptr<net::FileStream>& file_stream,
+ const net::BoundNetLog& bound_net_log);
virtual ~BaseFile();
// Returns net::OK on success, or a network error code on failure.
@@ -103,6 +105,8 @@ class CONTENT_EXPORT BaseFile {
// Resets the current state of the hash to the contents of |hash_state_bytes|.
virtual bool SetHashState(const std::string& hash_state_bytes);
+ net::Error AbortOpen(net::Error error);
+
static const size_t kSha256HashLen = 32;
static const unsigned char kEmptySha256Hash[kSha256HashLen];
@@ -137,6 +141,8 @@ class CONTENT_EXPORT BaseFile {
// won't delete it on destruction.
bool detached_;
+ net::BoundNetLog bound_net_log_;
+
DISALLOW_COPY_AND_ASSIGN(BaseFile);
};

Powered by Google App Engine
This is Rietveld 408576698