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

Unified Diff: chrome/browser/chromeos/login/merge_session_throttle.h

Issue 12340017: Revert 183647 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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/chromeos/login/merge_session_throttle.h
===================================================================
--- chrome/browser/chromeos/login/merge_session_throttle.h (revision 183978)
+++ chrome/browser/chromeos/login/merge_session_throttle.h (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2013 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_CHROMEOS_LOGIN_MERGE_SESSION_THROTTLE_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_MERGE_SESSION_THROTTLE_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/chromeos/login/merge_session_load_page.h"
-#include "content/public/browser/resource_throttle.h"
-#include "net/base/completion_callback.h"
-
-namespace net {
-class URLRequest;
-}
-
-// Used to show an interstitial page while merge session process (cookie
-// reconstruction from OAuth2 refresh token in ChromeOS login) is still in
-// progress while we are attempting to load a google property.
-class MergeSessionThrottle
- : public content::ResourceThrottle,
- public base::SupportsWeakPtr<MergeSessionThrottle> {
- public:
- MergeSessionThrottle(int render_process_id,
- int render_view_id,
- net::URLRequest* request);
- virtual ~MergeSessionThrottle();
-
- // content::ResourceThrottle implementation:
- virtual void WillStartRequest(bool* defer) OVERRIDE;
-
- private:
- // MergeSessionLoadPage callback.
- void OnBlockingPageComplete();
-
- // Erase the state associated with a deferred load request.
- void ClearRequestInfo();
- bool IsRemote(const GURL& url) const;
-
- // True if we should show the merge session in progress page.
- bool ShouldShowMergeSessionPage(const GURL& url) const;
-
- int render_process_id_;
- int render_view_id_;
- net::URLRequest* request_;
-
- DISALLOW_COPY_AND_ASSIGN(MergeSessionThrottle);
-};
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MERGE_SESSION_THROTTLE_H_

Powered by Google App Engine
This is Rietveld 408576698