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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 1009583004: Add UMA histograms and logging for bad IPC message handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actions.xml claims to be pretty printed Created 5 years, 9 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
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_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 22 matching lines...) Expand all
33 int bad_msg_count() const { return bad_msg_count_; } 33 int bad_msg_count() const { return bad_msg_count_; }
34 34
35 // RenderProcessHost implementation (public portion). 35 // RenderProcessHost implementation (public portion).
36 void EnableSendQueue() override; 36 void EnableSendQueue() override;
37 bool Init() override; 37 bool Init() override;
38 int GetNextRoutingID() override; 38 int GetNextRoutingID() override;
39 void AddRoute(int32 routing_id, IPC::Listener* listener) override; 39 void AddRoute(int32 routing_id, IPC::Listener* listener) override;
40 void RemoveRoute(int32 routing_id) override; 40 void RemoveRoute(int32 routing_id) override;
41 void AddObserver(RenderProcessHostObserver* observer) override; 41 void AddObserver(RenderProcessHostObserver* observer) override;
42 void RemoveObserver(RenderProcessHostObserver* observer) override; 42 void RemoveObserver(RenderProcessHostObserver* observer) override;
43 void ReceivedBadMessage() override; 43 void ShutdownForBadMessage() override;
44 void WidgetRestored() override; 44 void WidgetRestored() override;
45 void WidgetHidden() override; 45 void WidgetHidden() override;
46 int VisibleWidgetCount() const override; 46 int VisibleWidgetCount() const override;
47 bool IsIsolatedGuest() const override; 47 bool IsIsolatedGuest() const override;
48 StoragePartition* GetStoragePartition() const override; 48 StoragePartition* GetStoragePartition() const override;
49 virtual void AddWord(const base::string16& word); 49 virtual void AddWord(const base::string16& word);
50 bool Shutdown(int exit_code, bool wait) override; 50 bool Shutdown(int exit_code, bool wait) override;
51 bool FastShutdownIfPossible() override; 51 bool FastShutdownIfPossible() override;
52 bool FastShutdownStarted() const override; 52 bool FastShutdownStarted() const override;
53 void DumpHandles() override; 53 void DumpHandles() override;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // for deleting all MockRenderProcessHosts that have not deleted by a test in 155 // for deleting all MockRenderProcessHosts that have not deleted by a test in
156 // the destructor and prevent them from being leaked. 156 // the destructor and prevent them from being leaked.
157 mutable ScopedVector<MockRenderProcessHost> processes_; 157 mutable ScopedVector<MockRenderProcessHost> processes_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 159 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
160 }; 160 };
161 161
162 } // namespace content 162 } // namespace content
163 163
164 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 164 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698