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

Side by Side Diff: content/browser/media/midi_host.cc

Issue 2108053005: Pull ChildProcessSecurityPolicyImpl out to shared subfolder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/media/midi_host.h" 5 #include "content/browser/media/midi_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "content/browser/bad_message.h" 12 #include "content/browser/bad_message.h"
13 #include "content/browser/browser_main_loop.h" 13 #include "content/browser/browser_main_loop.h"
14 #include "content/browser/child_process_security_policy_impl.h"
15 #include "content/browser/media/media_internals.h" 14 #include "content/browser/media/media_internals.h"
15 #include "content/browser/shared/child_process_security_policy_helper.h"
16 #include "content/common/media/midi_messages.h" 16 #include "content/common/media/midi_messages.h"
17 #include "content/public/browser/content_browser_client.h" 17 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/browser/media_observer.h" 18 #include "content/public/browser/media_observer.h"
19 #include "content/public/browser/user_metrics.h" 19 #include "content/public/browser/user_metrics.h"
20 #include "media/midi/midi_manager.h" 20 #include "media/midi/midi_manager.h"
21 #include "media/midi/midi_message_queue.h" 21 #include "media/midi/midi_message_queue.h"
22 #include "media/midi/midi_message_util.h" 22 #include "media/midi/midi_message_util.h"
23 23
24 namespace content { 24 namespace content {
25 namespace { 25 namespace {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 264 }
265 waiting_data_length = media::midi::GetMidiMessageLength(current); 265 waiting_data_length = media::midi::GetMidiMessageLength(current);
266 if (waiting_data_length == 0) 266 if (waiting_data_length == 0)
267 return false; // Error: |current| should have been a valid status byte. 267 return false; // Error: |current| should have been a valid status byte.
268 --waiting_data_length; // Found status byte 268 --waiting_data_length; // Found status byte
269 } 269 }
270 return waiting_data_length == 0 && !in_sysex; 270 return waiting_data_length == 0 && !in_sysex;
271 } 271 }
272 272
273 } // namespace content 273 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698