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

Unified Diff: chrome/browser/renderer_host/chrome_url_request_user_data.h

Issue 124383008: Remove is_prerender() from ChromeURLRequestUserData since it's not used anymore. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 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: chrome/browser/renderer_host/chrome_url_request_user_data.h
===================================================================
--- chrome/browser/renderer_host/chrome_url_request_user_data.h (revision 243184)
+++ chrome/browser/renderer_host/chrome_url_request_user_data.h (working copy)
@@ -1,41 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_URL_REQUEST_USER_DATA_H_
-#define CHROME_BROWSER_RENDERER_HOST_CHROME_URL_REQUEST_USER_DATA_H_
-
-#include "base/supports_user_data.h"
-
-namespace net {
-class URLRequest;
-}
-
-class ChromeURLRequestUserData : public base::SupportsUserData::Data {
- public:
- bool is_prerender() const { return is_prerender_; }
- void set_is_prerender(bool is_prerender) { is_prerender_ = is_prerender; }
-
- // Creates a new ChromeURLRequestUserData instance and attaches it
- // to |request|. |request| must not have an existing ChromeURLRequestUserData
- // instance attached to it, and must be non-NULL. The returned instance
- // is owned by |request|.
- static ChromeURLRequestUserData* Create(net::URLRequest* request);
-
- // Delete the ChromeURLRequestUserData from a |request|. |request| must be
- // non-NULL.
- static void Delete(net::URLRequest* request);
-
- // Gets the ChromeURLRequestUserData instance attached to |request|, or
- // returns NULL if one is not attached. |request| must be non-NULL.
- static ChromeURLRequestUserData* Get(const net::URLRequest* request);
-
- private:
- ChromeURLRequestUserData();
-
- bool is_prerender_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestUserData);
-};
-
-#endif // CHROME_BROWSER_RENDERER_HOST_CHROME_URL_REQUEST_USER_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698