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

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

Issue 16415016: Move nullable_string16.h to the string subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 #include "webkit/browser/dom_storage/dom_storage_context.h" 11 #include "webkit/browser/dom_storage/dom_storage_context.h"
12 #include "webkit/common/dom_storage/dom_storage_types.h" 12 #include "webkit/common/dom_storage/dom_storage_types.h"
13 13
14 class GURL; 14 class GURL;
15
16 namespace base {
15 class NullableString16; 17 class NullableString16;
18 }
16 19
17 namespace dom_storage { 20 namespace dom_storage {
18 class DomStorageArea; 21 class DomStorageArea;
19 class DomStorageContext; 22 class DomStorageContext;
20 class DomStorageHost; 23 class DomStorageHost;
21 } 24 }
22 25
23 namespace content { 26 namespace content {
24 class DOMStorageContextImpl; 27 class DOMStorageContextImpl;
25 28
(...skipping 30 matching lines...) Expand all
56 const GURL& page_url); 59 const GURL& page_url);
57 void OnClear(int connection_id, const GURL& page_url); 60 void OnClear(int connection_id, const GURL& page_url);
58 void OnFlushMessages(); 61 void OnFlushMessages();
59 62
60 // DomStorageContext::EventObserver implementation which 63 // DomStorageContext::EventObserver implementation which
61 // sends events back to our renderer process. 64 // sends events back to our renderer process.
62 virtual void OnDomStorageItemSet( 65 virtual void OnDomStorageItemSet(
63 const dom_storage::DomStorageArea* area, 66 const dom_storage::DomStorageArea* area,
64 const string16& key, 67 const string16& key,
65 const string16& new_value, 68 const string16& new_value,
66 const NullableString16& old_value, 69 const base::NullableString16& old_value,
67 const GURL& page_url) OVERRIDE; 70 const GURL& page_url) OVERRIDE;
68 virtual void OnDomStorageItemRemoved( 71 virtual void OnDomStorageItemRemoved(
69 const dom_storage::DomStorageArea* area, 72 const dom_storage::DomStorageArea* area,
70 const string16& key, 73 const string16& key,
71 const string16& old_value, 74 const string16& old_value,
72 const GURL& page_url) OVERRIDE; 75 const GURL& page_url) OVERRIDE;
73 virtual void OnDomStorageAreaCleared( 76 virtual void OnDomStorageAreaCleared(
74 const dom_storage::DomStorageArea* area, 77 const dom_storage::DomStorageArea* area,
75 const GURL& page_url) OVERRIDE; 78 const GURL& page_url) OVERRIDE;
76 79
77 void SendDomStorageEvent( 80 void SendDomStorageEvent(
78 const dom_storage::DomStorageArea* area, 81 const dom_storage::DomStorageArea* area,
79 const GURL& page_url, 82 const GURL& page_url,
80 const NullableString16& key, 83 const base::NullableString16& key,
81 const NullableString16& new_value, 84 const base::NullableString16& new_value,
82 const NullableString16& old_value); 85 const base::NullableString16& old_value);
83 86
84 scoped_refptr<dom_storage::DomStorageContext> context_; 87 scoped_refptr<dom_storage::DomStorageContext> context_;
85 scoped_ptr<dom_storage::DomStorageHost> host_; 88 scoped_ptr<dom_storage::DomStorageHost> host_;
86 int connection_dispatching_message_for_; 89 int connection_dispatching_message_for_;
87 90
88 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); 91 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter);
89 }; 92 };
90 93
91 } // namespace content 94 } // namespace content
92 95
93 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ 96 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « base/strings/nullable_string16.h ('k') | content/browser/dom_storage/dom_storage_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698