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

Side by Side Diff: public/web/WebDatabase.h

Issue 455883003: Cleanup namespace usage in public/web/Web[A-M]*.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebDOMMouseEvent.h ('k') | public/web/WebDateTimeSuggestion.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebDatabase_h 31 #ifndef WebDatabase_h
32 #define WebDatabase_h 32 #define WebDatabase_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "WebSecurityOrigin.h" 35 #include "WebSecurityOrigin.h"
36 36
37 namespace blink { class DatabaseBackendBase; }
38
39 namespace blink { 37 namespace blink {
40 38
39 class DatabaseBackendBase;
41 class WebString; 40 class WebString;
42 41
43 class WebDatabase { 42 class WebDatabase {
44 public: 43 public:
45 BLINK_EXPORT WebString name() const; 44 BLINK_EXPORT WebString name() const;
46 BLINK_EXPORT WebString displayName() const; 45 BLINK_EXPORT WebString displayName() const;
47 BLINK_EXPORT unsigned long estimatedSize() const; 46 BLINK_EXPORT unsigned long estimatedSize() const;
48 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; 47 BLINK_EXPORT WebSecurityOrigin securityOrigin() const;
49 BLINK_EXPORT bool isSyncDatabase() const; 48 BLINK_EXPORT bool isSyncDatabase() const;
50 49
51 BLINK_EXPORT static void updateDatabaseSize( 50 BLINK_EXPORT static void updateDatabaseSize(
52 const WebString& originIdentifier, const WebString& name, long long size ); 51 const WebString& originIdentifier, const WebString& name, long long size );
53 BLINK_EXPORT static void updateSpaceAvailable( 52 BLINK_EXPORT static void updateSpaceAvailable(
54 const WebString& originIdentifier, long long spaceAvailable); 53 const WebString& originIdentifier, long long spaceAvailable);
55 BLINK_EXPORT static void resetSpaceAvailable( 54 BLINK_EXPORT static void resetSpaceAvailable(
56 const WebString& originIdentifier); 55 const WebString& originIdentifier);
57 56
58 BLINK_EXPORT static void closeDatabaseImmediately( 57 BLINK_EXPORT static void closeDatabaseImmediately(
59 const WebString& originIdentifier, const WebString& databaseName); 58 const WebString& originIdentifier, const WebString& databaseName);
60 59
61 #if BLINK_IMPLEMENTATION 60 #if BLINK_IMPLEMENTATION
62 WebDatabase(const blink::DatabaseBackendBase*); 61 WebDatabase(const DatabaseBackendBase*);
63 #endif 62 #endif
64 63
65 private: 64 private:
66 WebDatabase() { } 65 WebDatabase() { }
67 const blink::DatabaseBackendBase* m_database; 66 const DatabaseBackendBase* m_database;
68 }; 67 };
69 68
70 } // namespace blink 69 } // namespace blink
71 70
72 #endif 71 #endif
OLDNEW
« no previous file with comments | « public/web/WebDOMMouseEvent.h ('k') | public/web/WebDateTimeSuggestion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698