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

Unified Diff: net/url_request/view_cache_helper.h

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 12 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 | « net/url_request/url_request_test_job.cc ('k') | net/websockets/websocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/view_cache_helper.h
diff --git a/net/url_request/view_cache_helper.h b/net/url_request/view_cache_helper.h
index 03af7143dc8be60c63ca04ff2b30caac9f966db3..1952916121c608d6084e3304d382c61b87dbda66 100644
--- a/net/url_request/view_cache_helper.h
+++ b/net/url_request/view_cache_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -11,15 +11,15 @@
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
-class URLRequestContext;
-
namespace disk_cache {
class Backend;
class Entry;
-}
+} // namespace disk_cache
namespace net {
+class URLRequestContext;
+
class ViewCacheHelper {
public:
ViewCacheHelper();
@@ -29,16 +29,20 @@ class ViewCacheHelper {
// If this method returns ERR_IO_PENDING, |callback| will be notified when the
// operation completes. |out| must remain valid until this operation completes
// or the object is destroyed.
- int GetEntryInfoHTML(const std::string& key, URLRequestContext* context,
- std::string* out, CompletionCallback* callback);
+ int GetEntryInfoHTML(const std::string& key,
+ net::URLRequestContext* context,
+ std::string* out,
+ CompletionCallback* callback);
// Formats the cache contents as HTML. Returns a net error code.
// If this method returns ERR_IO_PENDING, |callback| will be notified when the
// operation completes. |out| must remain valid until this operation completes
// or the object is destroyed. |url_prefix| will be prepended to each entry
// key as a link to the entry.
- int GetContentsHTML(URLRequestContext* context, const std::string& url_prefix,
- std::string* out, CompletionCallback* callback);
+ int GetContentsHTML(net::URLRequestContext* context,
+ const std::string& url_prefix,
+ std::string* out,
+ CompletionCallback* callback);
private:
enum State {
@@ -56,8 +60,10 @@ class ViewCacheHelper {
};
// Implements GetEntryInfoHTML and GetContentsHTML.
- int GetInfoHTML(const std::string& key, URLRequestContext* context,
- const std::string& url_prefix, std::string* out,
+ int GetInfoHTML(const std::string& key,
+ net::URLRequestContext* context,
+ const std::string& url_prefix,
+ std::string* out,
CompletionCallback* callback);
// This is a helper function used to trigger a completion callback. It may
@@ -87,7 +93,7 @@ class ViewCacheHelper {
// Called to signal completion of asynchronous IO.
void OnIOComplete(int result);
- scoped_refptr<URLRequestContext> context_;
+ scoped_refptr<net::URLRequestContext> context_;
disk_cache::Backend* disk_cache_;
disk_cache::Entry* entry_;
void* iter_;
« no previous file with comments | « net/url_request/url_request_test_job.cc ('k') | net/websockets/websocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698