Home
last modified time | relevance | path

Searched refs:process_ (Results 1 – 25 of 61) sorted by relevance

123

/external/chromium_org/base/process/
Dprocess_win.cc14 if (!process_) in Close()
18 if (process_ != ::GetCurrentProcess()) in Close()
19 ::CloseHandle(process_); in Close()
21 process_ = NULL; in Close()
25 if (!process_) in Terminate()
35 terminate_process(process_, result_code); in Terminate()
39 if (!process_) in IsProcessBackgrounded()
49 if (!process_) in SetProcessBackgrounded()
56 (process_ == ::GetCurrentProcess())) { in SetProcessBackgrounded()
63 return (::SetPriorityClass(process_, priority) != 0); in SetProcessBackgrounded()
[all …]
Dprocess_posix.cc22 if (process_ == 0) in pid()
25 return GetProcId(process_); in pid()
29 return process_ == GetCurrentProcessHandle(); in is_current()
33 process_ = 0; in Close()
41 if (!process_) in Terminate()
45 KillProcess(process_, result_code, false); in Terminate()
69 DCHECK(process_); in GetPriority()
70 return getpriority(PRIO_PROCESS, process_); in GetPriority()
Dprocess.h17 Process() : process_(kNullProcessHandle) { in Process()
20 explicit Process(ProcessHandle handle) : process_(handle) { in Process()
30 ProcessHandle handle() const { return process_; } in handle()
32 process_ = handle; in set_handle()
65 ProcessHandle process_;
Dkill_win.cc52 ProcessHandle process_; member in base::__anon4aef6d940111::TimerExpiredTask
59 TimerExpiredTask::TimerExpiredTask(ProcessHandle process) : process_(process) { in TimerExpiredTask()
60 watcher_.StartWatching(process_, this); in TimerExpiredTask()
65 DCHECK(!process_) << "Make sure to close the handle."; in ~TimerExpiredTask()
69 if (process_) in TimedOut()
74 CloseHandle(process_); in OnObjectSignaled()
75 process_ = NULL; in OnObjectSignaled()
86 base::KillProcess(process_, kProcessKilledExitCode, false); in KillProcess()
89 OnObjectSignaled(process_); in KillProcess()
Dprocess_metrics_win.cc27 if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) { in GetPagefileUsage()
36 if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) { in GetPeakPagefileUsage()
45 if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) { in GetWorkingSetSize()
54 if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) { in GetPeakWorkingSetSize()
68 GetProcessMemoryInfo(process_, in GetMemoryBytes()
91 while (VirtualQueryEx(process_, base_address, &mbi, sizeof(mbi)) == in GetCommittedKBytes()
148 if (QueryWorkingSet(process_, buffer, buffer_size)) in GetWorkingSetKBytes()
203 if (!GetProcessTimes(process_, &creation_time, &exit_time, in GetCPUUsage()
247 if (!::VirtualQueryEx(process_, reinterpret_cast<void*>(scan), in CalculateFreeMemory()
264 return GetProcessIoCounters(process_, io_counters) != FALSE; in GetIOCounters()
[all …]
Dprocess_linux.cc68 DCHECK(process_); in IsProcessBackgrounded()
74 base::FilePath(StringPrintf(kProcPath, process_)), in IsProcessBackgrounded()
90 DCHECK(process_); in SetProcessBackgrounded()
94 std::string pid = StringPrintf("%d", process_); in SetProcessBackgrounded()
106 int result = setpriority(PRIO_PROCESS, process_, priority); in SetProcessBackgrounded()
Dprocess_metrics_mac.cc95 if (!GetTaskInfo(TaskForPid(process_), &task_info_data)) in GetPagefileUsage()
106 if (!GetTaskInfo(TaskForPid(process_), &task_info_data)) in GetWorkingSetSize()
126 mach_port_t task = TaskForPid(process_); in GetMemoryBytes()
133 if (!GetCPUTypeForProcess(process_, &cpu_type)) in GetMemoryBytes()
230 mach_port_t task = TaskForPid(process_); in GetCPUUsage()
287 mach_port_t task = TaskForPid(process_); in GetIdleWakeupsPerSecond()
333 : process_(process), in ProcessMetrics()
343 task = port_provider_->TaskForPid(process_); in TaskForPid()
344 if (task == MACH_PORT_NULL && process_ == getpid()) in TaskForPid()
Dprocess_metrics_openbsd.cc20 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_, in GetPagefileUsage()
41 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_, in GetWorkingSetSize()
114 last_cpu_ = GetProcessCPU(process_); in GetCPUUsage()
124 int cpu = GetProcessCPU(process_); in GetCPUUsage()
135 : process_(process), in ProcessMetrics()
Dprocess_metrics_freebsd.cc16 : process_(process), in ProcessMetrics()
29 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ }; in GetPagefileUsage()
44 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ }; in GetWorkingSetSize()
86 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ }; in GetCPUUsage()
/external/chromium_org/content/browser/
Dsite_instance_impl.cc30 process_(NULL), in SiteInstanceImpl()
38 if (process_) in ~SiteInstanceImpl()
39 process_->RemoveObserver(this); in ~SiteInstanceImpl()
54 if (process_ != NULL) in HasProcess()
79 if (!process_) { in GetProcess()
87 process_ = RenderProcessHostImpl::GetProcessHostForSite(browser_context, in GetProcess()
92 if (!process_ && RenderProcessHostImpl::ShouldTryToUseExistingProcessHost( in GetProcess()
94 process_ = RenderProcessHostImpl::GetExistingProcessHost(browser_context, in GetProcess()
99 if (!process_) { in GetProcess()
101 process_ = g_render_process_host_factory_->CreateRenderProcessHost( in GetProcess()
[all …]
Dppapi_plugin_process_host.cc168 if (iter->process_.get() && in DidCreateOutOfProcessInstance()
169 iter->process_->GetData().id == plugin_process_id) { in DidCreateOutOfProcessInstance()
190 if (iter->process_.get() && in DidDeleteOutOfProcessInstance()
191 iter->process_->GetData().id == plugin_process_id) { in DidDeleteOutOfProcessInstance()
207 if (iter->process_.get() && iter->process_->GetData().name == name) in FindByName()
213 return process_->Send(message); in Send()
217 if (process_->GetHost()->IsChannelOpening()) { in OpenChannelToPlugin()
243 process_.reset(new BrowserChildProcessHostImpl( in PpapiPluginProcessHost()
252 process_->AddFilter(filter_.get()); in PpapiPluginProcessHost()
253 process_->GetHost()->AddFilter(host_impl_->message_filter().get()); in PpapiPluginProcessHost()
[all …]
Dplugin_process_host.cc114 process_.reset(new BrowserChildProcessHostImpl(PROCESS_TYPE_PLUGIN, this)); in PluginProcessHost()
151 return process_->Send(message); in Send()
156 process_->SetName(info_.name); in Init()
158 std::string channel_id = process_->GetHost()->CreateChannel(); in Init()
247 process_->Launch( in Init()
248 new PluginSandboxedProcessLauncherDelegate(process_->GetHost()), in Init()
255 process_->SetTerminateChildOnShutdown(false); in Init()
264 process_->GetData().id, PROCESS_TYPE_PLUGIN, NULL, NULL, NULL, NULL, in Init()
266 process_->AddFilter(resource_message_filter); in Init()
273 process_->ForceShutdown(); in ForceShutdown()
[all …]
Dutility_process_host_impl.cc126 return process_->Send(message); in Send()
162 return process_->GetData(); in GetData()
183 process_.reset(new BrowserChildProcessHostImpl(PROCESS_TYPE_UTILITY, this)); in StartProcess()
184 process_->SetName(base::ASCIIToUTF16("utility process")); in StartProcess()
186 std::string channel_id = process_->GetHost()->CreateChannel(); in StartProcess()
258 process_->Launch( in StartProcess()
262 process_->GetHost()), in StartProcess()
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_unittest.cc169 process_, this, this, routing_id_, InputRouterImpl::Config())); in DisableGestureDebounce()
439 : process_(NULL), in RenderWidgetHostTest()
464 process_ = new RenderWidgetHostProcess(browser_context_.get()); in SetUp()
473 new MockRenderWidgetHost(delegate_.get(), process_, MSG_ROUTING_NONE)); in SetUp()
483 process_ = NULL; in TearDown()
617 RenderWidgetHostProcess* process_; // Deleted automatically by the widget. member in content::__anon87c94b620111::RenderWidgetHostTest
652 EXPECT_FALSE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); in TEST_F()
657 process_->sink().ClearMessages(); in TEST_F()
663 EXPECT_TRUE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); in TEST_F()
667 process_->sink().ClearMessages(); in TEST_F()
[all …]
/external/chromium_org/content/browser/worker_host/
Dworker_process_host.cc147 process_.reset( in WorkerProcessHost()
170 process_->GetData().id); in ~WorkerProcessHost()
174 return process_->Send(message); in Send()
178 std::string channel_id = process_->GetHost()->CreateChannel(); in Init()
232 process_->Launch( in Init()
233 new WorkerSandboxedProcessLauncherDelegate(process_->GetHost(), in Init()
238 process_->GetData().id, render_process_id); in Init()
246 process_->GetData().id)); in Init()
264 process_->GetData().id, PROCESS_TYPE_WORKER, in CreateMessageFilters()
270 process_->AddFilter(resource_message_filter); in CreateMessageFilters()
[all …]
/external/chromium_org/chrome/browser/extensions/api/messaging/
Dextension_message_port.cc20 : process_(process), in ExtensionMessagePort()
38 process_->Send(new ExtensionMsg_DispatchOnConnect( in DispatchOnConnect()
46 process_->Send(new ExtensionMsg_DispatchOnDisconnect( in DispatchOnDisconnect()
52 process_->Send(new ExtensionMsg_DeliverMessage( in DispatchOnMessage()
58 Profile::FromBrowserContext(process_->GetBrowserContext()); in IncrementLazyKeepaliveCount()
72 Profile::FromBrowserContext(process_->GetBrowserContext()); in DecrementLazyKeepaliveCount()
81 return process_; in GetRenderProcessHost()
/external/chromium_org/components/nacl/browser/
Dnacl_broker_host_win.cc43 process_.reset(content::BrowserChildProcessHost::Create( in NaClBrokerHost()
52 std::string channel_id = process_->GetHost()->CreateChannel(); in Init()
70 process_->Launch(new NaClBrokerSandboxedProcessLauncherDelegate, in Init()
87 return process_->Send( in LaunchLoader()
99 base::ProcessHandle broker_process = process_->GetData().handle; in LaunchDebugExceptionHandler()
105 return process_->Send(new NaClProcessMsg_LaunchDebugExceptionHandler( in LaunchDebugExceptionHandler()
116 process_->Send(new NaClProcessMsg_StopBroker()); in StopBroker()
Dnacl_process_host.cc282 process_.reset(content::BrowserChildProcessHost::Create( in NaClProcessHost()
289 process_->SetName(net::FormatUrl(manifest_url_, std::string())); in NaClProcessHost()
297 if (process_->GetData().handle != base::kNullProcessHandle) { in ~NaClProcessHost()
299 process_->GetTerminationStatus(false /* known_dead */, &exit_code); in ~NaClProcessHost()
308 NaClBrowser::GetInstance()->OnProcessEnd(process_->GetData().id); in ~NaClProcessHost()
488 process_->SetHandle(handle); in OnProcessLaunchedByBroker()
503 return process_->Send(msg); in Send()
548 std::string channel_id = process_->GetHost()->CreateChannel(); in LaunchSelLdr()
633 process_->Launch( in LaunchSelLdr()
634 new NaClSandboxedProcessLauncherDelegate(process_->GetHost()), in LaunchSelLdr()
[all …]
/external/chromium_org/extensions/browser/
Devent_listener_map_unittest.cc36 process_(new content::MockRenderProcessHost(browser_context_.get())) { in EventListenerMapUnittest()
70 scoped_ptr<content::MockRenderProcessHost> process_; member in extensions::__anon09f114780111::EventListenerMapUnittest
112 kEvent1Name, kExt1Id, process_.get(), in TEST_F()
126 kEvent1Name, kExt1Id, process_.get(), in TEST_F()
129 listeners_->RemoveListenersForProcess(process_.get()); in TEST_F()
142 kEvent1Name, kExt1Id, process_.get(), in TEST_F()
146 process_.get(), CreateHostSuffixFilter("google.com"))); in TEST_F()
229 new EventListener(kEvent1Name, kExt1Id, process_.get(), in TEST_F()
231 listeners_->RemoveListenersForProcess(process_.get()); in TEST_F()
239 new EventListener(kEvent1Name, kExt1Id, process_.get(), in TEST_F()
[all …]
Devent_listener_map.cc24 process_(process), in EventListener()
36 extension_id_ == other->extension_id_ && process_ == other->process_ && in Equals()
46 event_name_, extension_id_, process_, filter_copy.Pass())); in Copy()
50 return !process_; in IsLazy()
54 process_ = NULL; in MakeLazy()
58 return process_ ? process_->GetBrowserContext() : NULL; in GetBrowserContext()
/external/chromium_org/third_party/webrtc/base/
Dcpumonitor.cc138 process_.prev_load_time_ = 0u; in Init()
288 int elapsed = static_cast<int>(TimeDiff(timenow, process_.prev_load_time_)); in GetProcessLoad()
289 if (min_load_interval_ != 0 && process_.prev_load_time_ != 0u && in GetProcessLoad()
291 return process_.prev_load_; in GetProcessLoad()
362 process_.prev_load_time_ = timenow; in GetProcessLoad()
363 process_.prev_load_ = UpdateCpuLoad(total_times, in GetProcessLoad()
365 &process_.prev_total_times_, in GetProcessLoad()
366 &process_.prev_cpu_times_); in GetProcessLoad()
367 return process_.prev_load_; in GetProcessLoad()
/external/chromium_org/sandbox/win/src/
Dservice_resolver_32.cc211 if (!::ReadProcessMemory(process_, target_, &function_code, in IsFunctionAService()
228 if (!::ReadProcessMemory(process_, in IsFunctionAService()
298 if (!::WriteProcessMemory(process_, remote_thunk, local_thunk, in PerformPatch()
308 if (!::WriteProcessMemory(process_, target_, &intercepted_code, in PerformPatch()
312 if (!WriteProtectedChildMemory(process_, target_, &intercepted_code, in PerformPatch()
324 if (!::ReadProcessMemory(process_, target_, &function_code, in SaveOriginalFunction()
359 if (!::ReadProcessMemory(process_, target_, &function_code, in IsFunctionAService()
385 if (!::ReadProcessMemory(process_, target_, &function_code, in IsFunctionAService()
406 if (!::ReadProcessMemory(process_, target_, &function_code, in IsFunctionAService()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dcpumonitor.cc155 process_.prev_load_time_ = 0u; in Init()
305 int elapsed = static_cast<int>(TimeDiff(timenow, process_.prev_load_time_)); in GetProcessLoad()
306 if (min_load_interval_ != 0 && process_.prev_load_time_ != 0u && in GetProcessLoad()
308 return process_.prev_load_; in GetProcessLoad()
379 process_.prev_load_time_ = timenow; in GetProcessLoad()
380 process_.prev_load_ = UpdateCpuLoad(total_times, in GetProcessLoad()
382 &process_.prev_total_times_, in GetProcessLoad()
383 &process_.prev_cpu_times_); in GetProcessLoad()
384 return process_.prev_load_; in GetProcessLoad()
/external/chromium_org/content/browser/renderer_host/input/
Dinput_router_impl_unittest.cc151 process_.reset(new MockRenderProcessHost(browser_context_.get())); in SetUp()
156 input_router_.reset(new InputRouterImpl(process_.get(), in SetUp()
171 process_.reset(); in TearDown()
313 size_t count = process_->sink().message_count(); in GetSentMessageCountAndResetSink()
314 process_->sink().ClearMessages(); in GetSentMessageCountAndResetSink()
325 scoped_ptr<MockRenderProcessHost> process_; member in content::InputRouterImplTest
341 process_->sink().GetMessageAt(0), in TEST_F()
363 process_->sink().GetMessageAt(0), in TEST_F()
380 process_->sink().GetMessageAt(0), gfx::Point(1, 2)); in TEST_F()
400 process_->sink().GetMessageAt(0), gfx::Point(9, 10)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/task_manager/
Drenderer_resource.cc20 : process_(process), in RendererResource()
28 pid_ = base::GetProcId(process_); in RendererResource()
79 return process_; in GetProcess()

123