~osomon/oxide/power-save-blocker

« back to all changes in this revision

Viewing changes to shared/renderer/oxide_render_process_observer.h

  • Committer: Chris Coulson
  • Date: 2014-06-02 15:06:30 UTC
  • Revision ID: chris.coulson@canonical.com-20140602150630-pahmaxtqonhxvmuc
Stop using WebContents::SetUserAgentOverride to set the user agent string, as this is unreliable in some circumstances. Instead, have a child-process-global user agent string

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef _OXIDE_SHARED_RENDERER_RENDER_PROCESS_OBSERVER_H_
19
19
#define _OXIDE_SHARED_RENDERER_RENDER_PROCESS_OBSERVER_H_
20
20
 
 
21
#include <string>
 
22
 
21
23
#include "base/basictypes.h"
22
24
#include "base/compiler_specific.h"
23
25
#include "content/public/renderer/render_process_observer.h"
32
34
 
33
35
 private:
34
36
  void OnSetIsIncognitoProcess(bool incognito);
 
37
  void OnSetUserAgent(const std::string& user_agent);
35
38
 
36
39
  // content::RenderProcessObserver implementation
37
40
  bool OnControlMessageReceived(const IPC::Message& message) FINAL;