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

Side by Side Diff: content/child/db_message_filter.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « content/child/database_util.cc ('k') | content/child/db_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHILD_DB_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_CHILD_DB_MESSAGE_FILTER_H_
6 #define CONTENT_CHILD_DB_MESSAGE_FILTER_H_ 6 #define CONTENT_CHILD_DB_MESSAGE_FILTER_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "ipc/message_filter.h" 11 #include "ipc/message_filter.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 // Receives database messages from the browser process and processes them on the 15 // Receives database messages from the browser process and processes them on the
15 // IO thread. 16 // IO thread.
16 class DBMessageFilter : public IPC::MessageFilter { 17 class DBMessageFilter : public IPC::MessageFilter {
17 public: 18 public:
18 DBMessageFilter(); 19 DBMessageFilter();
19 20
20 // IPC::MessageFilter 21 // IPC::MessageFilter
21 bool OnMessageReceived(const IPC::Message& message) override; 22 bool OnMessageReceived(const IPC::Message& message) override;
22 23
23 protected: 24 protected:
24 ~DBMessageFilter() override {} 25 ~DBMessageFilter() override {}
25 26
26 private: 27 private:
27 void OnDatabaseUpdateSize(const std::string& origin_identifier, 28 void OnDatabaseUpdateSize(const std::string& origin_identifier,
28 const base::string16& database_name, 29 const base::string16& database_name,
29 int64 database_size); 30 int64_t database_size);
30 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier, 31 void OnDatabaseUpdateSpaceAvailable(const std::string& origin_identifier,
31 int64 space_available); 32 int64_t space_available);
32 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier); 33 void OnDatabaseResetSpaceAvailable(const std::string& origin_identifier);
33 void OnDatabaseCloseImmediately(const std::string& origin_identifier, 34 void OnDatabaseCloseImmediately(const std::string& origin_identifier,
34 const base::string16& database_name); 35 const base::string16& database_name);
35 }; 36 };
36 37
37 } // namespace content 38 } // namespace content
38 39
39 #endif // CONTENT_CHILD_DB_MESSAGE_FILTER_H_ 40 #endif // CONTENT_CHILD_DB_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/child/database_util.cc ('k') | content/child/db_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698