| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ |
| 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/string16.h" |
| 12 #include "base/time.h" | 11 #include "base/time.h" |
| 13 #include "base/waitable_event.h" | 12 #include "base/waitable_event.h" |
| 14 #include "chrome/browser/host_content_settings_map.h" | 13 #include "chrome/browser/host_content_settings_map.h" |
| 15 #include "chrome/browser/cookie_prompt_modal_dialog_delegate.h" | 14 #include "chrome/browser/cookie_prompt_modal_dialog_delegate.h" |
| 16 #include "chrome/common/content_settings.h" | 15 #include "chrome/common/content_settings.h" |
| 17 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 18 | 17 |
| 19 // This class is used to request content setting related permission for local | 18 // This class is used to request content setting related permission for local |
| 20 // storage. It should only be used for one such event and then discarded. | 19 // storage. It should only be used for one such event and then discarded. |
| 21 class DOMStoragePermissionRequest : public CookiePromptModalDialogDelegate { | 20 class DOMStoragePermissionRequest : public CookiePromptModalDialogDelegate { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 55 |
| 57 // One time use. Never reset. | 56 // One time use. Never reset. |
| 58 base::WaitableEvent event_; | 57 base::WaitableEvent event_; |
| 59 | 58 |
| 60 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 59 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 61 | 60 |
| 62 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStoragePermissionRequest); | 61 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStoragePermissionRequest); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ | 64 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_PERMISSION_REQUEST_H_ |
| OLD | NEW |