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

Side by Side Diff: content/child/indexed_db/indexed_db_key_builders.h

Issue 312093005: IndexedDB: Sprinkle DISALLOW_COPY_AND_ASSIGN where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fixes Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_ 5 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_ 6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/indexed_db/indexed_db_key.h" 9 #include "content/common/indexed_db/indexed_db_key.h"
10 #include "content/common/indexed_db/indexed_db_key_path.h" 10 #include "content/common/indexed_db/indexed_db_key_path.h"
11 #include "content/common/indexed_db/indexed_db_key_range.h" 11 #include "content/common/indexed_db/indexed_db_key_range.h"
12 #include "third_party/WebKit/public/platform/WebIDBKey.h" 12 #include "third_party/WebKit/public/platform/WebIDBKey.h"
13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h" 13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
14 #include "third_party/WebKit/public/platform/WebIDBKeyRange.h" 14 #include "third_party/WebKit/public/platform/WebIDBKeyRange.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebIDBKey; 17 class WebIDBKey;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 class CONTENT_EXPORT IndexedDBKeyBuilder { 22 class CONTENT_EXPORT IndexedDBKeyBuilder {
23 public: 23 public:
24 static IndexedDBKey Build(const blink::WebIDBKey& key); 24 static IndexedDBKey Build(const blink::WebIDBKey& key);
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyBuilder);
25 }; 28 };
26 29
27 class CONTENT_EXPORT WebIDBKeyBuilder { 30 class CONTENT_EXPORT WebIDBKeyBuilder {
28 public: 31 public:
29 static blink::WebIDBKey Build(const content::IndexedDBKey& key); 32 static blink::WebIDBKey Build(const content::IndexedDBKey& key);
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(WebIDBKeyBuilder);
30 }; 36 };
31 37
32 class CONTENT_EXPORT IndexedDBKeyRangeBuilder { 38 class CONTENT_EXPORT IndexedDBKeyRangeBuilder {
33 public: 39 public:
34 static IndexedDBKeyRange Build(const blink::WebIDBKeyRange& key_range); 40 static IndexedDBKeyRange Build(const blink::WebIDBKeyRange& key_range);
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyRangeBuilder);
35 }; 44 };
36 45
37 class CONTENT_EXPORT IndexedDBKeyPathBuilder { 46 class CONTENT_EXPORT IndexedDBKeyPathBuilder {
38 public: 47 public:
39 static IndexedDBKeyPath Build(const blink::WebIDBKeyPath& key_path); 48 static IndexedDBKeyPath Build(const blink::WebIDBKeyPath& key_path);
49
50 private:
51 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyPathBuilder);
40 }; 52 };
41 53
42 class CONTENT_EXPORT WebIDBKeyPathBuilder { 54 class CONTENT_EXPORT WebIDBKeyPathBuilder {
43 public: 55 public:
44 static blink::WebIDBKeyPath Build(const IndexedDBKeyPath& key_path); 56 static blink::WebIDBKeyPath Build(const IndexedDBKeyPath& key_path);
57
58 private:
59 DISALLOW_COPY_AND_ASSIGN(WebIDBKeyPathBuilder);
45 }; 60 };
46 61
47 } // namespace content 62 } // namespace content
48 63
49 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_ 64 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698