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

Side by Side Diff: chrome/browser/apps/app_shim/app_shim_host_mac.cc

Issue 585123004: Mac: Give app_shim code a nicer home (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: various cleanups Created 6 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
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 #include "apps/app_shim/app_shim_host_mac.h" 5 #include "chrome/browser/apps/app_shim/app_shim_host_mac.h"
6 6
7 #include "apps/app_shim/app_shim_handler_mac.h"
8 #include "apps/app_shim/app_shim_messages.h"
9 #include "base/bind.h" 7 #include "base/bind.h"
10 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
11 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/apps/app_shim/app_shim_handler_mac.h"
11 #include "chrome/common/mac/app_shim_messages.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 14
15 AppShimHost::AppShimHost() : initial_launch_finished_(false) {} 15 AppShimHost::AppShimHost() : initial_launch_finished_(false) {}
16 16
17 AppShimHost::~AppShimHost() { 17 AppShimHost::~AppShimHost() {
18 DCHECK(CalledOnValidThread()); 18 DCHECK(CalledOnValidThread());
19 apps::AppShimHandler* handler = apps::AppShimHandler::GetForAppMode(app_id_); 19 apps::AppShimHandler* handler = apps::AppShimHandler::GetForAppMode(app_id_);
20 if (handler) 20 if (handler)
21 handler->OnShimClose(this); 21 handler->OnShimClose(this);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 void AppShimHost::OnAppRequestUserAttention(apps::AppShimAttentionType type) { 123 void AppShimHost::OnAppRequestUserAttention(apps::AppShimAttentionType type) {
124 Send(new AppShimMsg_SetUserAttention(type)); 124 Send(new AppShimMsg_SetUserAttention(type));
125 } 125 }
126 126
127 void AppShimHost::Close() { 127 void AppShimHost::Close() {
128 DCHECK(CalledOnValidThread()); 128 DCHECK(CalledOnValidThread());
129 delete this; 129 delete this;
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_shim/app_shim_host_mac.h ('k') | chrome/browser/apps/app_shim/app_shim_host_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698