IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / histogram_message_filter.h
blob64c13cb6987028e18b99cf09bff296a8cc78287d
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
8 #include <string>
9 #include <vector>
11 #include "content/public/browser/browser_message_filter.h"
12 #include "content/public/common/process_type.h"
14 namespace content {
16 // This class sends and receives histogram messages in the browser process.
17 class HistogramMessageFilter : public BrowserMessageFilter {
18 public:
19 HistogramMessageFilter();
21 // BrowserMessageFilter implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message,
23 bool* message_was_ok) OVERRIDE;
25 private:
26 virtual ~HistogramMessageFilter();
28 // Message handlers.
29 void OnChildHistogramData(int sequence_number,
30 const std::vector<std::string>& pickled_histograms);
31 void OnGetBrowserHistogram(const std::string& name,
32 std::string* histogram_json);
34 DISALLOW_COPY_AND_ASSIGN(HistogramMessageFilter);
37 } // namespace content
39 #endif // CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_