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

Unified Diff: chrome/browser/in_process_webkit/dom_storage_permission_request.h

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/in_process_webkit/dom_storage_permission_request.h
===================================================================
--- chrome/browser/in_process_webkit/dom_storage_permission_request.h (revision 59533)
+++ chrome/browser/in_process_webkit/dom_storage_permission_request.h (working copy)
@@ -1,64 +0,0 @@
-// Copyright (c) 2010 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_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_
-#define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_
-#pragma once
-
-#include "base/ref_counted.h"
-#include "base/string16.h"
-#include "base/time.h"
-#include "base/waitable_event.h"
-#include "chrome/browser/host_content_settings_map.h"
-#include "chrome/browser/cookie_prompt_modal_dialog_delegate.h"
-#include "chrome/common/content_settings.h"
-#include "googleurl/src/gurl.h"
-
-// This class is used to request content setting related permission for local
-// storage. It should only be used for one such event and then discarded.
-class DOMStoragePermissionRequest : public CookiePromptModalDialogDelegate {
- public:
- DOMStoragePermissionRequest(const GURL& url,
- const string16& key,
- const string16& value,
- HostContentSettingsMap* settings);
-
-
- ContentSetting WaitOnResponse();
-
- const GURL& url() const { return url_; }
- const string16& key() const { return key_; }
- const string16& value() const { return value_; }
-
- // Called on the UI thread.
- static void PromptUser(DOMStoragePermissionRequest* request);
-
- // CookiesPromptViewDelegate methods:
- virtual void AllowSiteData(bool session_expire);
- virtual void BlockSiteData();
-
- private:
- void SendResponse(ContentSetting content_setting);
-
- // The URL we need to get permission for.
- const GURL url_;
-
- // The key we're trying to set.
- const string16 key_;
-
- // The value we're trying to set.
- const string16 value_;
-
- // The response to the permission request.
- ContentSetting response_content_setting_;
-
- // One time use. Never reset.
- base::WaitableEvent event_;
-
- scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStoragePermissionRequest);
-};
-
-#endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_

Powered by Google App Engine
This is Rietveld 408576698