| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class CORE_EXPORT ApplicationCacheHost final | 49 class CORE_EXPORT ApplicationCacheHost final |
| 50 : public GarbageCollectedFinalized<ApplicationCacheHost>, | 50 : public GarbageCollectedFinalized<ApplicationCacheHost>, |
| 51 NON_EXPORTED_BASE(public WebApplicationCacheHostClient) { | 51 NON_EXPORTED_BASE(public WebApplicationCacheHostClient) { |
| 52 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); | 52 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); |
| 53 | 53 |
| 54 public: | 54 public: |
| 55 static ApplicationCacheHost* Create(DocumentLoader* loader) { | 55 static ApplicationCacheHost* Create(DocumentLoader* loader) { |
| 56 return new ApplicationCacheHost(loader); | 56 return new ApplicationCacheHost(loader); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void SetWebApplicationCacheHost( |
| 60 std::unique_ptr<WebApplicationCacheHost> web_host) { |
| 61 DCHECK(!host_); |
| 62 host_ = std::move(web_host); |
| 63 } |
| 64 |
| 59 virtual ~ApplicationCacheHost(); | 65 virtual ~ApplicationCacheHost(); |
| 60 void DetachFromDocumentLoader(); | 66 void DetachFromDocumentLoader(); |
| 61 | 67 |
| 62 // The Status numeric values are specified in the HTML5 spec. | 68 // The Status numeric values are specified in the HTML5 spec. |
| 63 enum Status { | 69 enum Status { |
| 64 kUncached = 0, | 70 kUncached = 0, |
| 65 kIdle = 1, | 71 kIdle = 1, |
| 66 kChecking = 2, | 72 kChecking = 2, |
| 67 kDownloading = 3, | 73 kDownloading = 3, |
| 68 kUpdateready = 4, | 74 kUpdateready = 4, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 223 |
| 218 std::unique_ptr<WebApplicationCacheHost> host_; | 224 std::unique_ptr<WebApplicationCacheHost> host_; |
| 219 | 225 |
| 220 FRIEND_TEST_ALL_PREFIXES(DocumentTest, SandboxDisablesAppCache); | 226 FRIEND_TEST_ALL_PREFIXES(DocumentTest, SandboxDisablesAppCache); |
| 221 FRIEND_TEST_ALL_PREFIXES(DocumentTest, SuboriginDisablesAppCache); | 227 FRIEND_TEST_ALL_PREFIXES(DocumentTest, SuboriginDisablesAppCache); |
| 222 }; | 228 }; |
| 223 | 229 |
| 224 } // namespace blink | 230 } // namespace blink |
| 225 | 231 |
| 226 #endif // ApplicationCacheHost_h | 232 #endif // ApplicationCacheHost_h |
| OLD | NEW |