0
Commit Graph

80 Commits

Author SHA1 Message Date
jonross
3698029981 ScreenOrientationProvider coverts the platform agnositc logic around locking/unlocking and notifying the dispatcher of success.
A ScreenOrientationDelegate has been added to handle platform specific implementations. Such as actual locking/unlocking, as well as if the actions are supported.

BUG=396760

Review URL: https://codereview.chromium.org/546453004

Cr-Commit-Position: refs/heads/master@{#298719}
2014-10-08 15:55:33 +00:00
miu
8b4f7fa775 AudioMirroringManager becomes a global LazyInstance.
While attempting to resolve a flaky browser_test, it became clear that
AudioMirroringManager was not outliving its use.  In the original change
that introduced this class, it was instantiated and owned by
BrowserMainLoop as a matter of convenience.  However, with some
debugging, it's clear that it must outlive objects that can outlive
BrowserMainLoop (e.g., WebContentsAudioInputStream).

Side notes: I've checked the feasibility of other solutions, confirming
that the shutdown of AudioManager does NOT guarantee complete teardown
of an AudioInputStream, so it's not sufficient to simply change the
destruction order of the objects in BrowserMainLoop to resolve this
problem.  As AudioMirroringManager provides a browser-wide service and
owns no objects, it seems reasonable for it to exist as a global
LazyInstance.

BUG=396413

Review URL: https://codereview.chromium.org/499483003

Cr-Commit-Position: refs/heads/master@{#292258}
2014-08-27 23:05:48 +00:00
alemate@chromium.org
cec95636bb Store unsaved trace data on exit.
This CL enables chromeos chrome startup trace when chrome in restarted on
user log in: startup trace should be saved to disk on process exit if
"trace-startup-duration" period has not ended yet.

BUG=346913
TEST=manual

Review URL: https://codereview.chromium.org/359473006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281061 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-02 18:01:50 +00:00
mark@chromium.org
8b03c07636 Broadcast NotifyTimezoneChange to all RenderProcessHosts when the system time
zone changes.

On Mac, this listens for NSSystemTimeZoneDidChangeNotification notifications.
The Mac implementation also contains a sandbox hole to allow time zone
information (/etc/localtime and /usr/share/zoneinfo) to be read from within
sandboxed renderer processes.

On Windows, this listens for WM_TIMECHANGE messages.

On Linux (but not Chrome OS or Android), this watches for changes to
/etc/localtime, /etc/timezone, and /etc/TZ. There isn't a better standard for
watching for time zone changes on Linux. The actual mechanism is
libc-specific, but this should work with common libc implementations. Time
zone watching is suppressed if the TZ environment variable is set. Linux
(including Chrome OS and Android) already contains a sandbox workaround
(ProxyLocaltimeCallToBrowser) that allows renderer processes to get time zone
information from the browser.

On Android, this uses a Java bridge to listen for
Intent.ACTION_TIMEZONE_CHANGED.

This unifies the existing time zone change notification from Chrome OS with
the other platform implementations.

On Mac, Linux, Chrome OS, and Android renderers should pick up the new time
zone name and UTC offset. On Windows, renderers may only be able to pick up
the new UTC offset only, and the sandbox may blocks them from picking up the
new time zone name, although in my test on Windows Server 2012, they were able
to pick up both the UTC offset and the time zone name upon change.

This is a continuation of https://codereview.chromium.org/183763041/ (Mac) and
https://codereview.chromium.org/193763002/ (Windows).

BUG=288697
TEST=http://crbug.com/288697#c12: load the page, change the system time zone,
     and then click "recheck" to ensure that the renderer picks up the new
     time zone. Don't reload the page, which is likely to give you a new
     renderer process, use the "recheck" link on the page.

R=bulach@chromium.org, cpu@chromium.org, jeremy@chromium.org, jln@chromium.org, jochen@chromium.org, pastarmovj@chromium.org, rsesek@chromium.org

Review URL: https://codereview.chromium.org/251613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267226 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-30 15:49:25 +00:00
sadrul@chromium.org
d957b10b25 content: Terminate early if the toolkit initialization fails.
On Chrome OS, it is possible for chrome to start without the X11
server (e.g. X server has crashed, and hasn't restarted since). In
such cases, Chrome ends up causing a crash. So instead of the crash,
abort the startup sequence if the toolkit initialization step fails.

BUG=364929
R=jam@chromium.org

Review URL: https://codereview.chromium.org/250723002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266231 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-25 20:17:19 +00:00
scottmg@chromium.org
ed3bf8a649 Revert of Attempting to resolve a race condition with PowerMonitor (https://codereview.chromium.org/179923006/)
Reason for revert:
Failing interactive_ui_tests dbg:

http://build.chromium.org/p/chromium.win/builders/Interactive%20Tests%20(dbg)/builds/47083/steps/interactive_ui_tests/logs/stdio

Original issue's description:
> Attempting to resolve a race condition with PowerMonitor.
> 
> ThreadSanitizer caught multiple instances where PowerMonitor::Get or PowerMonitor::Add/RemoveObserver were being called concurrently with the PowerMonitor constructor in the main thread. These functions access a process-global PowerMontior instance (g_power_monitor), which was not thread safe.
> 
> This change adds locks around PowerMonitor creation and deletion, and forces Add/RemoveObserver to be called in a threadsafe manner. It also removes the need to call PowerMonitor::Get.
> 
> BUG=268924
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262018

TBR=mattm@chromium.org,jyasskin@chromium.org,kbr@chromium.org,bradnelson@chromium.org,brettw@chromium.org,bradchen@chromium.org,willchan@chromium.org,jam@chromium.org,jochen@chromium.org,timurrrr@chromium.org,glider@chromium.org,acolwell@chromium.org,scherkus@chromium.org,bajones@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=268924

Review URL: https://codereview.chromium.org/226263008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262026 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-05 18:55:57 +00:00
bajones@chromium.org
f65e97e447 Attempting to resolve a race condition with PowerMonitor.
ThreadSanitizer caught multiple instances where PowerMonitor::Get or PowerMonitor::Add/RemoveObserver were being called concurrently with the PowerMonitor constructor in the main thread. These functions access a process-global PowerMontior instance (g_power_monitor), which was not thread safe.

This change adds locks around PowerMonitor creation and deletion, and forces Add/RemoveObserver to be called in a threadsafe manner. It also removes the need to call PowerMonitor::Get.

BUG=268924

Review URL: https://codereview.chromium.org/179923006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262018 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-05 17:28:39 +00:00
brettw@chromium.org
2f3b1cce4c Move CommandLine to base namespace.
Fix all forward-declares and header files referencing CommandLine.

This keeps a "using base::CommandLine" in the command line header file so that the rest of the source files can be changes in a follow-up.

TBR=sky

Review URL: https://codereview.chromium.org/196413016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257514 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-17 23:07:15 +00:00
mcasas@chromium.org
08f2c54c58 Mac AVFoundation/QTKit: delay DeviceMonitorMac startup to first GetUserMedia.
Currently DeviceMonitorMac is constructed from BrowserMainLoop in the
first compasses of Chrome bringup. DeviceMonitorMac creates either a
QTKitMonitorImpl or a AVFoundationMonitorImpl, that immediately
starts observing the system capture devices. This monitoring is
not needed until the user actively starts operating the devices,
that happens in MediaStreamManager.

This CL adds a method StartMonitoring() to DeviceMonitorMac that is
exercised from MediaStreamManager::StartMonitoring().

The performance regression in bugs 349616 and 348020 affects only
AVFoundation, but both implementations would benefit from a delayed
startup.

Tested locally via using --[enable/disable]-avfoundation, connecting
and disconnecting devices etc.

BUG=288562, 349616, 348020

Review URL: https://codereview.chromium.org/189443010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256483 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-12 09:27:25 +00:00
toyoshim@chromium.org
6e068ea00e Web MIDI: make naming convention be consistent
Naming cleanup based on following rules:
 - MidiFooBar ... use this style to be consistent with chromium
 - WebMIDIFooBar ... Web API name related things, or names in blink
 - MIDIFooBar ... APIs and structures defined by each operating systems

Other cleanup:
 - Modify some TODO(crogers) to TODO(toyoshim)
 - Add some crbug links.
 - Remove some obsolete UI TODOs related to infobars

BUG=none
TEST=build for all platforms

Review URL: https://codereview.chromium.org/151343002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248686 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-04 07:05:47 +00:00
wangxianzhu@chromium.org
1eb14613b5 Use TracingController for startup tracing
This CL depends on https://codereview.chromium.org/66893003/ (which allows customized trace data file) and https://codereview.chromium.org/66193005/ (which removes TraceLog enable counting).

BUG=none
R=cdn@chromium.org, nduca@chromium.org, piman@chromium.org

Review URL: https://codereview.chromium.org/65343006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236362 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-21 01:04:58 +00:00
mostynb@opera.com
49513e078c Make it possible to disable udev in the content API on linux
This is useful for embedded linux setups, which often don't include udev support.

TEST=Build content_shell on linux with use_udev=0 then run ldd on output binaries to verify libudev is not listed (and is listed if built with use_udev=1 or unspecified)

BUG=318315,318413

Review URL: https://codereview.chromium.org/12374068

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236204 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-20 08:36:40 +00:00
jwmak@chromium.org
e5a631a543 Chrome tracing for system-wide performance stats.
Trace memory, swap, ZRAM, and disk activity and
place the data in JSON to be displayed by trace-viewer.

BUG=236763
TEST=base_unittests TraceSystemStatsMonitorTest.*

Review URL: https://chromiumcodereview.appspot.com/22836004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223806 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-18 07:33:27 +00:00
aberent@chromium.org
232e09d18f Allow overlapping sync and async startup requests
On Android we can get a second request to start the browser while
the an asynchronous request is in progress. Since the second
request may be synchronous, we may have switch to completing
initialization synchronously. This patch handles this by tracking
which initialization tasks have been run, and running the remaining
initialization tasks.

BUG=260574

Review URL: https://chromiumcodereview.appspot.com/22691002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219795 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-27 15:29:56 +00:00
jiayl@chromium.org
61f697f261 Adding key press detection in the browser process.
It works like this on the browser side: 
A new object UserInputMonitor is created on BrowserMainLoop and passed to AudioInputRendererHost to pass to AudioInputController.
AudioInputController::DoRecord calls UserInputMonitor::AddKeyStrokeListener --> UserInputMonitor listens to system key events (only implemented on Linux) --> AudioInputController::OnKeyPressed is called and sets key_pressed_ --> When AudioInputController::OnData called, it writes key_pressed_ to shared memory along with the audio data buffer.
On the renderer side a new param "key_pressed" is added through the code path of passing the flag to the webrtc voice engine.
This CL includes all these changes except the implementation of UserInputMonitor for Windows and Mac. The impl of UserInputMonitor is mostly copied from remoting/host/local_input_monitor_linux.cc


BUG=

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217768

Review URL: https://chromiumcodereview.appspot.com/21183002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217844 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-15 22:02:40 +00:00
phoglund@chromium.org
1a8d01dcec Revert 217768 "Adding key press detection in the browser process."
> Adding key press detection in the browser process.
> It works like this on the browser side: 
> A new object KeyPressMonitor is created on BrowserMainLoop and passed to AudioInputRendererHost to pass to AudioInputController.
> AudioInputController::DoRecord calls KeyPressMonitor::AddKeyPressListener --> KeyPressMonitor listens to system key events through UserInputMonitor(only implemented on Linux) --> AudioInputController::OnKeyPressed is called and sets key_pressed_ --> When AudioInputController::OnData called, it writes key_pressed_ to shared memory along with the audio data buffer.
> On the renderer side a new param "key_pressed" is added through the code path of passing the flag to the webrtc voice engine.
> This CL includes all these changes except the implementation of UserInputMonitor for Windows and Mac. The impl of UserInputMonitor is mostly copied from remoting/host/local_input_monitor_linux.cc
> 
> 
> BUG=
> 
> Review URL: https://chromiumcodereview.appspot.com/21183002

TBR=jiayl@chromium.org

Review URL: https://codereview.chromium.org/22871007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217774 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-15 11:11:35 +00:00
jiayl@chromium.org
781a1daa27 Adding key press detection in the browser process.
It works like this on the browser side: 
A new object KeyPressMonitor is created on BrowserMainLoop and passed to AudioInputRendererHost to pass to AudioInputController.
AudioInputController::DoRecord calls KeyPressMonitor::AddKeyPressListener --> KeyPressMonitor listens to system key events through UserInputMonitor(only implemented on Linux) --> AudioInputController::OnKeyPressed is called and sets key_pressed_ --> When AudioInputController::OnData called, it writes key_pressed_ to shared memory along with the audio data buffer.
On the renderer side a new param "key_pressed" is added through the code path of passing the flag to the webrtc voice engine.
This CL includes all these changes except the implementation of UserInputMonitor for Windows and Mac. The impl of UserInputMonitor is mostly copied from remoting/host/local_input_monitor_linux.cc


BUG=

Review URL: https://chromiumcodereview.appspot.com/21183002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217768 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-15 07:41:01 +00:00
aberent@chromium.org
57624abcbe Run the later parts of startup as UI thread tasks
This CL splits the later parts of startup, from thread creation onwards,
into multiple UI thread tasks. Depending on the StartupTaskRunner passed
to CreateThreads the tasks are all run immediately, or are queued one at
a time on the UI thread. This, on platforms where the UI is
already running, allows the UI to remain interactive while Chrome is
initialized.

BUG=231856

Review URL: https://chromiumcodereview.appspot.com/19957002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215042 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-01 16:01:51 +00:00
jamescook@chromium.org
111494e2d8 Record Chrome trace events in tcmalloc heap profiles
This allows about:tracing to show tcmalloc heap memory allocation over time.

The implementation:
* Adds a "memory" checkbox to about:tracing
* Uses thread-local-storage to store the "stack" of trace events per thread while about:tracing is running.
* Introduces a StackGeneratorFunction callback into tcmalloc, allowing it to call back into Chrome to get a "stack" of trace events.
* Parses the heap profiler output of tcmalloc and converts it to JSON to be displayed by a visualizer in the about:tracing trace viewer.

BUG=243895
TEST=base_unittests TraceMemoryTest.*

Review URL: https://chromiumcodereview.appspot.com/15418002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213473 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-24 18:38:29 +00:00
jamesr@chromium.org
08dda5ce86 Remove unused WEBKIT_DEPRECATED thread
BUG=237267, 234283
R=jam@chromium.org

Review URL: https://codereview.chromium.org/18414007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212661 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-19 21:55:53 +00:00
avi@chromium.org
89bf27e34e Move timing files into base/time and base/timer, install forwarding headers.
BUG=254986
TEST=none
TBR=brettw@chromium.org

Review URL: https://codereview.chromium.org/18063004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208951 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-27 18:04:56 +00:00
jsbell@chromium.org
89acda8c53 Move IndexedDB from WEBKIT_DEPRECATED to dedicated thread
BUG=234279

Review URL: https://chromiumcodereview.appspot.com/17518004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208544 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-25 20:52:50 +00:00
crogers@google.com
a987515b63 Re-land 16025005 with tiny fix for statics perf issue
16025005 had review from: palmer@chromium.org, piman@chromium.org, scherkus@chromium.org

BUG=163795
TBR=scherkus@chromium.org

Review URL: https://codereview.chromium.org/17288018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208003 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-22 04:03:03 +00:00
sadrul@chromium.org
5ad0c7075a Revert 207992: This looks like a reland of r207983, which was reverted in
r207989. But it looks more like an accidental commit.

TBR=crogers@google.com

Review URL: https://codereview.chromium.org/17176031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207996 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-22 02:37:40 +00:00
crogers@google.com
5f6f9bce34 don't include iostream.h
use ChildThread for main loop - fix Android build

whitespace fix

minor style fix

last minute compile fixes

address Antoine's comments

minor changes to reflect latest Blink API -- address palmer comments

last minute include order fix

address last minute style nits

stub out other OSes

support Takashi's MIDIAccessor

fix minor build err

undo param traits changes

get rid of param_traits - other minor style nits

address scherkus comments

use int64 for ParamTraits

WIP fix white-space issues more style basically working some cleanup -- support for multiple clients forgot midi_manager.cc Get MIDI port information sent to renderer formatting fixes lots of cleanup - added RequestAccess and Send style more style only bother sending received messages to renderer if approval was asked early steps to granting permission to Blink some progress to sending port info to Blink send client_id when requesting access fix minor style issues in .gyp files fix context/browser DEPS fix include paths

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207992 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-22 02:08:15 +00:00
crogers@google.com
e1848157f1 Revert 207983 "Implement Web MIDI API back-end"
> Implement Web MIDI API back-end
> 
> This involves browser-side support and IPC for sending and receiving
> MIDI messages.  Initially support for OSX is included.
> 
> BUG=163795
> R=palmer@chromium.org, piman@chromium.org, scherkus@chromium.org
> 
> Review URL: https://codereview.chromium.org/16025005

TBR=crogers@google.com

Review URL: https://codereview.chromium.org/17334006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207989 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-22 01:49:39 +00:00
crogers@google.com
3940e87eae Implement Web MIDI API back-end
This involves browser-side support and IPC for sending and receiving
MIDI messages.  Initially support for OSX is included.

BUG=163795
R=palmer@chromium.org, piman@chromium.org, scherkus@chromium.org

Review URL: https://codereview.chromium.org/16025005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207983 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-22 00:55:52 +00:00
jam@chromium.org
aa44546e02 Minor cleanup to remove the static thread-safe methods on BrowserMainLoop. Initially I thought this would be one getter so it seemed fine, but now it has 3 and more are on the way. Switch to one static getter for this class, and then getters for the member variables. I used dependency injection to allow access to these objects from other threads, which also cleaned up tests a bit.
R=scherkus@chromium.org

Review URL: https://codereview.chromium.org/17508005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207871 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-21 17:12:36 +00:00
hongbo.min@intel.com
6c5905b763 Split the power monitoring feature from SystemMonitor
The SystemMonitor is a mixed monitor which not only monitors
the power state changes but also the devices changes. This
patch is to separate the power monitor from SystemMonitor
as a new class PowerMonitor which is dedicated to monitor
power state.

The next step is to seek a opportunity to refactor SystemMonitor
as something like DeviceMonitor.

BUG=149059
TEST=base_unittests --gtest_filter=PowerMonitorTest.*

Review URL: https://chromiumcodereview.appspot.com/10959020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192114 0039d316-1c4b-4281-b951-d872f2087c98
2013-04-03 19:06:51 +00:00
brettw@chromium.org
5e9e96aae1 Move MessageLoop to base namespace.
This adds a "using" to the header to avoid having to update everything at once. However, all forward declares and the locations that use the forward declares need to be updated (since they don't see the using in message_loop.h).

BUG=

Review URL: https://codereview.chromium.org/13243003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191566 0039d316-1c4b-4281-b951-d872f2087c98
2013-03-31 02:29:20 +00:00
marja@chromium.org
ee57f33b13 Native memory histograms for the browser.
If a command line flag --memory-metrics is passed, the browser measures the
memory consumption after processing each task and puts the data to a histogram.

The histograms will be used in the memory_benchmark of Telemetry.


BUG=160979

Review URL: https://chromiumcodereview.appspot.com/11975048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179909 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-31 18:13:54 +00:00
miu@chromium.org
f8d1737f16 Tab Audio Mirroring/Capture: Browser-side connect/disconnect functionality:
1. Added new AudioMirroringManager to dynamically match/route "divertable" audio streams with mirroring destinations.
2. Modified AudioOutputController to provide "divert audio data" functionality.
3. Modified AudioRendererHost to notify AudioMirroringManager of all audio streams.

The intention is, in a later change, to introduce a "WebContentsAudioInputStream" which will implement the AudioMirroringManager::MirroringDestination interface introduced in this change.  WCAIS will represent the lifetime of a tab audio mirroring session, calling AudioMirroringManager::Start/StopMirroring() as appropriate.

Testing:

1. Rewrote most of unit testing for AudioOutputController, addressing bug 112500.  Also added testing for the new Divert functionality.
2. Added extensive unit testing for the new Start/StopMirroring functionality in AudioMirroringManager.
3. Minor testing clean-ups/additions elsewhere.

BUG=153392,112500
TEST=Run media_unittests and content_unittests.


Review URL: https://chromiumcodereview.appspot.com/11413078

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176295 0039d316-1c4b-4281-b951-d872f2087c98
2013-01-11 09:31:47 +00:00
jam@chromium.org
464883218e Move remaining files in content\browser to the content namespace.
Review URL: https://codereview.chromium.org/11340029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164828 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-30 03:22:20 +00:00
jam@chromium.org
1d232b98fb Move content\browser\renderer_host\media to content namespace.
TBR=tfarina
Review URL: https://codereview.chromium.org/11339014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164670 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-29 17:39:07 +00:00
jam@chromium.org
2208a74d15 Move content\browser\net to content namespace.
TBR=tfarina
Review URL: https://codereview.chromium.org/11343013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164665 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-29 17:09:44 +00:00
tfarina@chromium.org
fcb8e0216c content/browser: Move speech code into content namespace.
TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/11347004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164625 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-29 11:57:18 +00:00
sail@chromium.org
d9c2e51c51 Revert 164120 - content/browser: Move more files into the content namespace.
Fixed most of the files found with the following command line:

$ git grep --files-without-match --name-only "namespace content {" -- content/browser/{*.cc,*.h.*.mm}

R=jam@chromium.org

Review URL: https://codereview.chromium.org/11274038

TBR=tfarina@chromium.org
Review URL: https://codereview.chromium.org/11273049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164122 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-25 18:54:36 +00:00
tfarina@chromium.org
7a91c555f3 content/browser: Move more files into the content namespace.
Fixed most of the files found with the following command line:

$ git grep --files-without-match --name-only "namespace content {" -- content/browser/{*.cc,*.h.*.mm}

R=jam@chromium.org

Review URL: https://codereview.chromium.org/11274038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164120 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-25 18:44:52 +00:00
pkasting@chromium.org
e000ac9d1d We don't need to do both OleInitialize() and CoInitializeEx() on the same thread. Eliminate the ScopedCOMInitializer that does the latter for the main thread, and move the ScopedOleInitializer that does the former into the same spot.
BUG=none
TEST=Running Win debug Chrome does not produce console output about duplicate COM initializations
Review URL: https://codereview.chromium.org/11000010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159527 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-01 18:20:48 +00:00
leng@chromium.org
759a86a128 Minimal if-def changes for OS_IOS in browser_main_loop.*
BUG=None


Review URL: https://chromiumcodereview.appspot.com/10905076

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155724 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-10 14:42:54 +00:00
xians@chromium.org
1462544806 Add DeviceMonitorMac to BrowserMainLoop.
DeviceMonitorMac detects device changing and forwards the notifications to the system monitor.



BUG=137799


Review URL: https://chromiumcodereview.appspot.com/10824162

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151689 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-15 12:51:42 +00:00
wjia@chromium.org
97646c945e Add DeviceMonitorLinux in BrowserMainLoop.
The DeviceMonitorLinux detects device change and sends the signal to SystemMonitor.

This patch depends on http://codereview.chromium.org/10836004/

BUG=137799
Review URL: https://chromiumcodereview.appspot.com/10829073

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149266 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-31 20:30:08 +00:00
ajwong@chromium.org
f78671752a Remove #pragma once from content
Review URL: https://chromiumcodereview.appspot.com/10696166

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-11 07:04:07 +00:00
xians@chromium.org
5a309716dd Pepper needs to repeatedly call enumeration API in order to get a synchronous up-to-date device list. This heavily loads the IO thread since the enumeration is done on IO thread.
This patch moves the device thread from VideoCaptureManager to MediaStreamManager, so that audio and video can share one device thread, and also allow running audio device API on this shared device thread.

BUG=132701,130113
TEST=content_unittests

Review URL: https://chromiumcodereview.appspot.com/10662049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145584 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-06 12:03:05 +00:00
primiano@chromium.org
28df14da9f Moved instantiation of SpeechRecognitionManager inside browser_main_loop, instead of Singleton. (Speech CL1.10)
Compared to the Singleton solution, this allows the SpeechRecognitionManager to instantiate and cleanup the delegate at the right time.
Also, cleaned-up speech_recognition_browsertest.cc so that the FakeSpeechRecognitionManager extends only the SRM interface, and not the Impl class.

BUG=116954
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10399025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137424 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-16 14:51:22 +00:00
thestig@chromium.org
ab714ec7b7 Media Gallery: Move MediaDeviceNotificationsLinux from content to chrome.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10069007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132087 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-12 23:20:23 +00:00
simon.hong81@gmail.com
53ab4800b3 Modify Comment of BrowserMainLoop.
BUG=none
TEST=compiles

Review URL: http://codereview.chromium.org/10051017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132070 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-12 22:14:35 +00:00
vrk@google.com
67dfea903d Move media/audio files into media namespace (relanding)
BUG=115187
TEST=compiles and runs without breaking audio tag; media_unittests, content_unittests
TBR=scherkus,jam

Review URL: https://chromiumcodereview.appspot.com/9968054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130288 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-03 01:49:09 +00:00
vrk@google.com
f3a1b854e9 Revert 130180 - Move media/audio files into media namespace
BUG=115187
TEST=compiles and runs without breaking audio tag; media_unittests, content_unittests

Review URL: https://chromiumcodereview.appspot.com/9805001

TBR=vrk@google.com
Review URL: https://chromiumcodereview.appspot.com/9965076

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130182 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-02 19:50:50 +00:00
vrk@google.com
897bfb5aaa Move media/audio files into media namespace
BUG=115187
TEST=compiles and runs without breaking audio tag; media_unittests, content_unittests

Review URL: https://chromiumcodereview.appspot.com/9805001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130180 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-02 19:30:45 +00:00