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

Side by Side Diff: content/browser/dom_storage/dom_storage_context_wrapper.h

Issue 1832813002: Add mojom module suffix in .mojom files in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tom's comment Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // what data to keep and what data to discard at shutdown. 57 // what data to keep and what data to discard at shutdown.
58 // The policy is not so straight forward to describe, see 58 // The policy is not so straight forward to describe, see
59 // the implementation for details. 59 // the implementation for details.
60 void SetForceKeepSessionState(); 60 void SetForceKeepSessionState();
61 61
62 // Called when the BrowserContext/Profile is going away. 62 // Called when the BrowserContext/Profile is going away.
63 void Shutdown(); 63 void Shutdown();
64 64
65 void Flush(); 65 void Flush();
66 66
67 // See StoragePartitionService interface. 67 // See mojom::StoragePartitionService interface.
68 void OpenLocalStorage(const url::Origin& origin, 68 void OpenLocalStorage(const url::Origin& origin,
69 LevelDBWrapperRequest request); 69 mojom::LevelDBWrapperRequest request);
70 70
71 private: 71 private:
72 friend class DOMStorageMessageFilter; // for access to context() 72 friend class DOMStorageMessageFilter; // for access to context()
73 friend class SessionStorageNamespaceImpl; // ditto 73 friend class SessionStorageNamespaceImpl; // ditto
74 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; 74 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>;
75 75
76 ~DOMStorageContextWrapper() override; 76 ~DOMStorageContextWrapper() override;
77 DOMStorageContextImpl* context() const { return context_.get(); } 77 DOMStorageContextImpl* context() const { return context_.get(); }
78 78
79 // An inner class to keep all mojo-ish details together and not bleed them 79 // An inner class to keep all mojo-ish details together and not bleed them
80 // through the public interface. 80 // through the public interface.
81 class MojoState; 81 class MojoState;
82 scoped_ptr<MojoState> mojo_state_; 82 scoped_ptr<MojoState> mojo_state_;
83 83
84 scoped_refptr<DOMStorageContextImpl> context_; 84 scoped_refptr<DOMStorageContextImpl> context_;
85 85
86 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 91 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_permission_manager.cc ('k') | content/browser/dom_storage/dom_storage_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698