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

Side by Side Diff: content/common/host_discardable_shared_memory_manager.cc

Issue 2303653005: Migrate content/ files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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/common/gpu/client/command_buffer_metrics.cc ('k') | content/gpu/gpu_main.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/common/host_discardable_shared_memory_manager.h" 5 #include "content/common/host_discardable_shared_memory_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/atomic_sequence_num.h" 10 #include "base/atomic_sequence_num.h"
(...skipping 15 matching lines...) Expand all
26 #include "base/trace_event/process_memory_dump.h" 26 #include "base/trace_event/process_memory_dump.h"
27 #include "base/trace_event/trace_event.h" 27 #include "base/trace_event/trace_event.h"
28 #include "build/build_config.h" 28 #include "build/build_config.h"
29 #include "content/common/child_process_host_impl.h" 29 #include "content/common/child_process_host_impl.h"
30 #include "content/common/discardable_shared_memory_heap.h" 30 #include "content/common/discardable_shared_memory_heap.h"
31 #include "content/public/common/child_process_host.h" 31 #include "content/public/common/child_process_host.h"
32 32
33 #if defined(OS_LINUX) 33 #if defined(OS_LINUX)
34 #include "base/files/file_path.h" 34 #include "base/files/file_path.h"
35 #include "base/files/file_util.h" 35 #include "base/files/file_util.h"
36 #include "base/metrics/histogram.h" 36 #include "base/metrics/histogram_macros.h"
37 #endif 37 #endif
38 38
39 namespace content { 39 namespace content {
40 namespace { 40 namespace {
41 41
42 class DiscardableMemoryImpl : public base::DiscardableMemory { 42 class DiscardableMemoryImpl : public base::DiscardableMemory {
43 public: 43 public:
44 DiscardableMemoryImpl( 44 DiscardableMemoryImpl(
45 std::unique_ptr<base::DiscardableSharedMemory> shared_memory, 45 std::unique_ptr<base::DiscardableSharedMemory> shared_memory,
46 const base::Closure& deleted_callback) 46 const base::Closure& deleted_callback)
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 return; 549 return;
550 550
551 enforce_memory_policy_pending_ = true; 551 enforce_memory_policy_pending_ = true;
552 DCHECK(enforce_memory_policy_task_runner_); 552 DCHECK(enforce_memory_policy_task_runner_);
553 enforce_memory_policy_task_runner_->PostDelayedTask( 553 enforce_memory_policy_task_runner_->PostDelayedTask(
554 FROM_HERE, enforce_memory_policy_callback_, 554 FROM_HERE, enforce_memory_policy_callback_,
555 base::TimeDelta::FromMilliseconds(kEnforceMemoryPolicyDelayMs)); 555 base::TimeDelta::FromMilliseconds(kEnforceMemoryPolicyDelayMs));
556 } 556 }
557 557
558 } // namespace content 558 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698